From 8fa47d2bde3e5eebd008b9c25c2db9afcbab3144 Mon Sep 17 00:00:00 2001 From: Florian Date: Tue, 9 Jan 2024 17:35:41 -0600 Subject: [PATCH] [BOARD] Add Web Upload for ESP32-C3 family (#1861) --- docs/.vuepress/config.js | 2 +- scripts/gen_wu_dev.py | 55 ++++++++++++++++++++++++++++++++++++++-- 2 files changed, 54 insertions(+), 3 deletions(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index f56fea0..e99ded0 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -17,7 +17,7 @@ module.exports = { ['link', { rel: 'mask-icon', href: '/icons/safari-pinned-tab.svg', color: '#3eaf7c' }], ['meta', { name: 'msapplication-TileImage', content: '/favicon-144x144.png' }], ['meta', { name: 'msapplication-TileColor', content: '#000000' }], - ['script', {type: 'module', src: 'https://unpkg.com/esp-web-tools@3.4.2/dist/web/install-button.js?module'}] + ['script', {type: 'module', src: 'https://unpkg.com/esp-web-tools@3.5.0/dist/web/install-button.js?module'}] ], themeConfig: { repo: '1technophile/OpenMQTTGateway', diff --git a/scripts/gen_wu_dev.py b/scripts/gen_wu_dev.py index 36e3127..2b8805f 100644 --- a/scripts/gen_wu_dev.py +++ b/scripts/gen_wu_dev.py @@ -21,6 +21,22 @@ mf_temp32 = string.Template('''{ ] }''') +mf_temp32c3 = string.Template('''{ + "name": "OpenMQTTGateway", + "builds": [ + { + "chipFamily": "ESP32-C3", + "improv": false, + "parts": [ + { "path": "$cp$bl", "offset": 0 }, + { "path": "$cp$part", "offset": 32768 }, + { "path": "$cp$boot", "offset": 57344 }, + { "path": "$cp$bin", "offset": 65536 } + ] + } + ] +}''') + mf_temp8266 = string.Template('''{ "name": "OpenMQTTGateway", "builds": [ @@ -44,7 +60,11 @@ wu_temp_p1 = '''