add adafruit_feather_esp32s3_reversetft

This commit is contained in:
hathach 2023-02-10 22:34:59 +07:00
parent c4b28d6fa0
commit ad8670692f
No known key found for this signature in database
GPG key ID: 26FAB84F615C3C52
2 changed files with 10 additions and 5 deletions

View file

@ -169,6 +169,7 @@ def build_menu_usb(mcu, name):
upload_cdc = 'Internal USB'
upload_uart = 'UART0'
# ESP32-S3
if info['usb_mode']:
require_otg = ' (Requires USB-OTG Mode)'
upload_cdc = 'USB-OTG CDC (TinyUSB)'
@ -176,7 +177,7 @@ def build_menu_usb(mcu, name):
print('{}.menu.USBMode.default=USB-OTG (TinyUSB)'.format(name))
print('{}.menu.USBMode.default.build.usb_mode=0'.format(name))
print('{}.menu.USBMode.hwcdc=Hardware CDC and JTAG'.format(name))
print('{}.menu.USBMode.hwcdc.build.usb_mode=1'.format(name))
print('{}.menu.USBMode.hwcdc.build.usb_mode=1'.format(name))
print()
if info['cdc_on_boot'] >= 0:
@ -481,8 +482,11 @@ make_board("esp32s3", "adafruit_feather_esp32s3_nopsram", "", "ADAFRUIT_FEATHER_
make_board("esp32s3", "adafruit_feather_esp32s3_tft", "", "ADAFRUIT_FEATHER_ESP32S3_TFT", 4, 2,
"Adafruit", 'Feather ESP32-S3 TFT', "0x239A", ["0x811D", "0x011D", "0x811E"])
make_board("esp32s3", "adafruit_feather_esp32s3_reversetft", "", "ADAFRUIT_FEATHER_ESP32S3_REVTFT", 4, 2,
"Adafruit", 'Feather ESP32-S3 Reverse TFT', "0x239A", ["0x8123", "0x0123", "0x8124"])
make_board("esp32s3", "adafruit_qtpy_esp32s3_nopsram", "", "ADAFRUIT_QTPY_ESP32S3_NOPSRAM", 8, 0,
"Adafruit", 'QT Py ESP32-S3 No PSRAM', "0x239A", ["0x8119", "0x0119", "0x811A"])
make_board("esp32", "adafruit_itsybitsy_esp32", "", "ADAFRUIT_ITSYBITSY_ESP32", 8, 2,
"Adafruit", "ItsyBitsy ESP32", "", [])
"Adafruit", "ItsyBitsy ESP32", "", [])

View file

@ -4,7 +4,7 @@ import urllib.request
import zipfile
from multiprocessing import Pool
version = '0.10.2'
version = '0.12.3'
print('version {}'.format(version))
# variant name, tinyuf2 bootloader name
@ -21,6 +21,7 @@ all_variant = [
['adafruit_feather_esp32s2_tft', ''],
['adafruit_feather_esp32s3', ''],
['adafruit_feather_esp32s3_nopsram', ''],
['adafruit_feather_esp32s3_reversetft', 'adafruit_feather_esp32s3_reverse_tft'],
['adafruit_feather_esp32s3_tft', ''],
['adafruit_funhouse_esp32s2', ''],
['adafruit_magtag29_esp32s2', 'adafruit_magtag_29gray'],
@ -33,7 +34,7 @@ all_variant = [
def update_variant(v):
variant = v[0]
dl_name = v[1] if v[1] else v[0]
# Download from bootloader release
name = 'tinyuf2-{}-{}.zip'.format(dl_name, version)
url = 'https://github.com/adafruit/tinyuf2/releases/download/{}/tinyuf2-{}-{}.zip'.format(version, dl_name, version)
@ -43,7 +44,7 @@ def update_variant(v):
variant_path = 'variants/{}'.format(variant)
# unzip (will overwrite old files)
with zipfile.ZipFile(variant, "r") as zf:
with zipfile.ZipFile(variant, "r") as zf:
zf.extract("bootloader.bin", variant_path)
os.renames(os.path.join(variant_path, "bootloader.bin"), os.path.join(variant_path, "bootloader-tinyuf2.bin"))
zf.extract("tinyuf2.bin", variant_path)