Skip to content

Commit

Permalink
add web flasher
Browse files Browse the repository at this point in the history
  • Loading branch information
mjleehh committed Dec 20, 2024
1 parent 2ee05a7 commit 6e5ee77
Show file tree
Hide file tree
Showing 10 changed files with 165 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/config/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def get_doxygen_xml_dir() -> Path:
'default_mode': 'auto'
}

html_static_path = ['../get_started/_static']
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named 'default.css' will overwrite the builtin 'default.css'.
Expand Down
60 changes: 60 additions & 0 deletions docs/get_started/20_flash.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
**************
Device Flasher
**************

.. raw:: html

<embed>
<script
type="module"
src="https://unpkg.com/esp-web-tools@10/dist/web/install-button.js?module"
></script>

<esp-web-install-button manifest="/_static/device_manifests/manifest-tbd-dada.json">
<button slot="activate">Flash TBD dada</button>
<span slot="unsupported">error: unsupported browser</span>
<span slot="not-allowed">error: permission denied</span>
</esp-web-install-button>

<esp-web-install-button manifest="/_static/device_manifests/manifest-tbd-bba2.json">
<button slot="activate">Flash TBD BBA 2</button>
<span slot="unsupported">error: unsupported browser</span>
<span slot="not-allowed">error: permission denied</span>
</esp-web-install-button>

<esp-web-install-button manifest="/_static/device_manifests/manifest-tbd-bba1.json">
<button slot="activate">Flash TBD BBA 1</button>
<span slot="unsupported">error: unsupported browser</span>
<span slot="not-allowed">error: permission denied</span>
</esp-web-install-button>

<esp-web-install-button manifest="/_static/device_manifests/manifest-tbd-mk2.json">
<button slot="activate">Flash TBD MK 2</button>
<span slot="unsupported">error: unsupported browser</span>
<span slot="not-allowed">error: permission denied</span>
</esp-web-install-button>

<esp-web-install-button manifest="/_static/device_manifests/manifest-tbd-aem.json">
<button slot="activate">Flash TBD AEM</button>
<span slot="unsupported">error: unsupported browser</span>
<span slot="not-allowed">error: permission denied</span>
</esp-web-install-button>

<esp-web-install-button manifest="/_static/device_manifests/manifest-tbd-str.json">
<button slot="activate">Flash TBD Strämpler</button>
<span slot="unsupported">error: unsupported browser</span>
<span slot="not-allowed">error: permission denied</span>
</esp-web-install-button>

<esp-web-install-button manifest="/_static/device_manifests/manifest-tbd-v2.json">
<button slot="activate">Flash TBD v2</button>
<span slot="unsupported">error: unsupported browser</span>
<span slot="not-allowed">error: permission denied</span>
</esp-web-install-button>

<esp-web-install-button manifest="/_static/device_manifests/manifest-tbd-v1.json">
<button slot="activate">Flash TBD v1</button>
<span slot="unsupported">error: unsupported browser</span>
<span slot="not-allowed">error: permission denied</span>
</esp-web-install-button>
</embed>
13 changes: 13 additions & 0 deletions docs/get_started/_static/device_manifests/manifest-tbd-aem.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "tbd-aem",
"version": "v2 alpha 1",
"new_install_prompt_erase": false,
"builds": [
{
"chipFamily": "ESP32",
"parts": [
{ "path": "https://ctag-fh-kiel.github.io/ctag-tbd/downloads/tbd-aem-flash.bin", "offset": 0 }
]
}
]
}
13 changes: 13 additions & 0 deletions docs/get_started/_static/device_manifests/manifest-tbd-bba1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "tbd-bba1",
"version": "v2 alpha 1",
"new_install_prompt_erase": false,
"builds": [
{
"chipFamily": "ESP32-S3",
"parts": [
{ "path": "https://ctag-fh-kiel.github.io/ctag-tbd/downloads/tbd-bba1-flash.bin", "offset": 0 }
]
}
]
}
13 changes: 13 additions & 0 deletions docs/get_started/_static/device_manifests/manifest-tbd-bba2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "tbd-bba2",
"version": "v2 alpha 1",
"new_install_prompt_erase": false,
"builds": [
{
"chipFamily": "ESP32-S3",
"parts": [
{ "path": "https://ctag-fh-kiel.github.io/ctag-tbd/downloads/tbd-bba2-flash.bin", "offset": 0 }
]
}
]
}
13 changes: 13 additions & 0 deletions docs/get_started/_static/device_manifests/manifest-tbd-dada.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "tbd-dada",
"version": "v2 alpha 1",
"new_install_prompt_erase": false,
"builds": [
{
"chipFamily": "ESP32-S3",
"parts": [
{ "path": "https://ctag-fh-kiel.github.io/ctag-tbd/downloads/tbd-dada-flash.bin", "offset": 0 }
]
}
]
}
13 changes: 13 additions & 0 deletions docs/get_started/_static/device_manifests/manifest-tbd-mk2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "tbd-mk2",
"version": "v2 alpha 1",
"new_install_prompt_erase": false,
"builds": [
{
"chipFamily": "ESP32",
"parts": [
{ "path": "https://ctag-fh-kiel.github.io/ctag-tbd/downloads/tbd-mk2-flash.bin", "offset": 0 }
]
}
]
}
13 changes: 13 additions & 0 deletions docs/get_started/_static/device_manifests/manifest-tbd-str.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "tbd-str",
"version": "v2 alpha 1",
"new_install_prompt_erase": false,
"builds": [
{
"chipFamily": "ESP32",
"parts": [
{ "path": "https://ctag-fh-kiel.github.io/ctag-tbd/downloads/tbd-str-flash.bin", "offset": 0 }
]
}
]
}
13 changes: 13 additions & 0 deletions docs/get_started/_static/device_manifests/manifest-tbd-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "tbd-v1",
"version": "v2 alpha 1",
"new_install_prompt_erase": false,
"builds": [
{
"chipFamily": "ESP32",
"parts": [
{ "path": "https://ctag-fh-kiel.github.io/ctag-tbd/downloads/tbd-v1-flash.bin", "offset": 0 }
]
}
]
}
13 changes: 13 additions & 0 deletions docs/get_started/_static/device_manifests/manifest-tbd-v2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "tbd-v2",
"version": "v2 alpha 1",
"new_install_prompt_erase": false,
"builds": [
{
"chipFamily": "ESP32",
"parts": [
{ "path": "https://ctag-fh-kiel.github.io/ctag-tbd/downloads/tbd-v2-flash.bin", "offset": 0 }
]
}
]
}

0 comments on commit 6e5ee77

Please sign in to comment.