-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove unused var * Define MicroPython board in separate device directory * Use custom MH board def to make firmware * Update gitignore * Scripts import NON_DEVICE_FILES from parse_files Previously, each script was hard-coded to exclude 'default.yml', but now they have been updated to check the constant 'NON_DEVICE_FILES' from the 'parse_files.py' script This commit also includes a quick fix to TDECK/mpconfigboard.cmake, which points it at the new board definition * Move misplaced partition file
- Loading branch information
1 parent
9af7e8f
commit f61f829
Showing
22 changed files
with
95 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
# Build directories | ||
/MicroHydra | ||
|
||
# Local config files | ||
/.vscode | ||
*.bak | ||
/src/config.json | ||
|
||
# Temporary files | ||
*.bak | ||
|
||
# Python cache files | ||
__pycache__/ | ||
tools/__pycache__/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,4 @@ features: | |
- bluetooth | ||
|
||
mpy_arch: xtensawin | ||
source_board: ESP32_GENERIC_S3 | ||
source_board: MICROHYDRA_GENERIC_S3 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,4 +38,4 @@ features: | |
- spi_ram | ||
|
||
mpy_arch: xtensawin | ||
source_board: ESP32_GENERIC_S3 | ||
source_board: MICROHYDRA_GENERIC_S3 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,4 +47,4 @@ features: | |
- keyboard | ||
|
||
mpy_arch: xtensawin | ||
source_board: ESP32_GENERIC_S3 | ||
source_board: MICROHYDRA_GENERIC_S3 |
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
devices/esp32_mpy_build/boards/MICROHYDRA_GENERIC_S3/board.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"deploy": [ | ||
"../deploy_s3.md" | ||
], | ||
"docs": "", | ||
"features": [ | ||
"BLE", | ||
"External Flash", | ||
"External RAM", | ||
"WiFi" | ||
], | ||
"images": [ | ||
"generic_s3.jpg" | ||
], | ||
"mcu": "esp32s3", | ||
"product": "MicroHydra-ESP32-S3", | ||
"thumbnail": "", | ||
"url": "https://github.com/echo-lalia/MicroHydra", | ||
"vendor": "Espressif", | ||
"variants": { | ||
"SPIRAM_OCT": "Support for Octal-SPIRAM", | ||
"FLASH_4M": "4MiB flash" | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
devices/esp32_mpy_build/boards/MICROHYDRA_GENERIC_S3/board.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
The following files are firmware that should work on most ESP32-S3-based | ||
boards with 4/8MiB of flash, including WROOM and MINI modules. | ||
|
||
This firmware supports configurations with and without SPIRAM (also known as | ||
PSRAM) and will auto-detect a connected SPIRAM chip at startup and allocate | ||
the MicroPython heap accordingly. However if your board has Octal SPIRAM, then | ||
use the "spiram-oct" variant. | ||
|
||
If your board has 4MiB flash (including ESP32-S3FH4R2 based ones with embedded flash), then use the "flash-4m" build. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
devices/esp32_mpy_build/boards/MICROHYDRA_GENERIC_S3/mpconfigboard.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef MICROPY_HW_BOARD_NAME | ||
// Can be set by mpconfigboard.cmake. | ||
#define MICROPY_HW_BOARD_NAME "MicroHydra on ESP32S3" | ||
#endif | ||
#define MICROPY_HW_MCU_NAME "ESP32S3" | ||
|
||
// Enable UART REPL for modules that have an external USB-UART and don't use native USB. | ||
#define MICROPY_HW_ENABLE_UART_REPL (1) | ||
|
||
#define MICROPY_HW_I2C0_SCL (9) | ||
#define MICROPY_HW_I2C0_SDA (8) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
devices/esp32_mpy_build/boards/MICROHYDRA_GENERIC_S3/sdkconfig.flash_4m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y | ||
CONFIG_ESPTOOLPY_FLASHSIZE_8MB= | ||
|
||
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-4MiB.csv" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters