8000 esp32/boards/M5STACK_NANOC6: Add new M5Stack C6 board definition. · anight/micropython@ee92198 · GitHub
[go: up one dir, main page]

Skip to content

Commit ee92198

Browse files
mattytrentinidpgeorge
authored andcommitted
esp32/boards/M5STACK_NANOC6: Add new M5Stack C6 board definition.
Signed-off-by: Matt Trentini <matt.trentini@gmail.com>
1 parent 1bd312d commit ee92198

File tree

5 files changed

+61
-0
lines changed

5 files changed

+61
-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_nanoc6.md"
4+
],
5+
"docs": "",
6+
"features": [
7+
"BLE",
8+
"WiFi",
9+
"RGB LED",
10+
"USB",
11+
"USB-C",
12+
"JST-PH"
13+
],
14+
"images": [
15+
"m5stack_nanoc6.jpg"
16+
],
17+
"mcu": "esp32c6",
18+
"product": "M5Stack NanoC6",
19+
"url": "https://shop.m5stack.com/products/m5stack-nanoc6-dev-kit",
20+
"vendor": "M5Stack"
21+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Program your board using the esptool.py program, found
2+
[here](https://github.com/espressif/esptool).
3+
4+
To put the NanoC6 into 'update mode', hold the button while connecting the USB
5+
cable. It can be released after the connection is made.
6+
7+
If you are putting MicroPython on your board for the first time then you should
8+
first erase the entire flash using:
9+
10+
```bash
11+
esptool.py --chip esp32c6 --port /dev/ttyUSB0 erase_flash
12+
```
13+
14+
From then on program the firmware starting at address 0x0:
15+
16+
```bash
17+
esptool.py --chip esp32c6 --port /dev/ttyUSB0 --baud 460800 write_flash -z 0x0 M5STACK_NANOC6-20240602-v1.24.0.bin
18+
```
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
set(IDF_TARGET esp32c6)
2+
3+
set(SDKCONFIG_DEFAULTS
4+
boards/sdkconfig.base
5+
${SDKCONFIG_IDF_VERSION_SPECIFIC}
6+
boards/sdkconfig.ble
7+
)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#define MICROPY_HW_BOARD_NAME "M5Stack NanoC6"
2+
#define MICROPY_HW_MCU_NAME "ESP32C6"
3+
4+
#define MICROPY_HW_ENABLE_SDCARD (0)
5+
#define MICROPY_PY_MACHINE_I2S (0)
6+
7+
#define MICROPY_HW_I2C0_SCL (1)
8+
#define MICROPY_HW_I2C0_SDA (2)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
G1,GPIO1
2+
G2,GPIO2
3+
IR_LED,GPIO3
4+
LED_BLUE,GPIO7
5+
BUTTON,GPIO9
6+
NEOPIXEL_POWER,GPIO19
7+
NEOPIXEL,GPIO20

0 commit comments

Comments
 (0)
0