8000 esp32/boards/M5STACK_ATOMS3_LITE: Add M5Stack AtomS3 Lite board. · mzdaniel/micropython@43f40f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 43f40f7

Browse files
mattytrentinidpgeorge
authored andcommitted
esp32/boards/M5STACK_ATOMS3_LITE: Add M5Stack AtomS3 Lite board.
Signed-off-by: Matt Trentini <matt.trentini@gmail.com>
1 parent b6a3aa1 commit 43f40f7

File tree

6 files changed

+75
-0
lines changed

6 files changed

+75
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"deploy": [
3+
"deploy.md"
4+
],
5+
"docs": "https://docs.m5stack.com/en/core/AtomS3%20Lite",
6+
"features": [
7+
"BLE",
8+
"WiFi",
9+
"RGB LED",
10+
"JST-PH",
11+
"USB-C"
12+
],
13+
"images": [
14+
"atoms3lite.jpg"
15+
],
16+
"mcu": "esp32s3",
17+
"product": "AtomS3 Lite",
18+
"thumbnail": "",
19+
"url": "https://shop.m5stack.com/products/atoms3-lite-esp32s3-dev-kit",
20+
"vendor": "M5 Stack"
21+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
The [AtomS3 Lite](https://shop.m5stack.com/products/atoms3-lite-esp32s3-dev-kit)
2+
([docs](https://docs.m5stack.com/en/core/AtomS3%20Lite)) is an ESP32-S3 based
3+
development board from [M5Stack](https://m5stack.com/).
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Program your board using the `esptool.py` program, found
2+
[here](https://github.com/espressif/esptool).
3+
4+
To place the board in _bootloader mode_ - so `esptool`` can be used - press and
5+
hold the reset button for two seconds. A green LED will flash behind the reset
6+
button when the bootloader mode has been activated.
7+
8+
If you are putting MicroPython on your board for the first time then you should
9+
first erase the entire flash using:
10+
11+
```bash
12+
esptool.py --chip esp32s3 --port /dev/ttyACM0 erase_flash
13+
```
14+
15+
From then on program the firmware starting at address 0:
16+
17+
```bash
18+
esptool.py --chip esp32s3 --port /dev/ttyACM0 write_flash -z 0 board-20240105-v1.22.1.bin
19+
```
20+
21+
After the firmware has been deployed, press the reset button to reset the device
22+
and start the new firmware.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
set(IDF_TARGET esp32s3)
2+
3+
set(SDKCONFIG_DEFAULTS
4+
boards/sdkconfig.base
5+
boards/sdkconfig.usb
6+
boards/sdkconfig.ble
7+
boards/ESP32_GENERIC_S3/sdkconfig.board
8+
)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#define MICROPY_HW_BOARD_NAME "M5Stack AtomS3 Lite"
2+
#define MICROPY_HW_MCU_NAME "ESP32S3"
3+
4+
#define MICROPY_PY_MACHINE_DAC (0)
5+
6+
// Enable UART REPL for modules that have an external USB-UART and don't use native USB.
7+
#define MICROPY_HW_ENABLE_UART_REPL (1)
8+
9+
#define MICROPY_HW_I2C0_SCL (39)
10+
#define MICROPY_HW_I2C0_SDA (38)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
G1,GPIO1
2+
G2,GPIO2
3+
G5,GPIO5
4+
G6,GPIO6
5+
G7,GPIO7
6+
G8,GPIO8
7+
G38,GPIO38
8+
G39,GPIO39
9+
LED_RGB,GPIO35
10+
LED_IR,GPIO4
11+
BUTTON,GPIO41

0 commit comments

Comments
 (0)
0