esp32/boards/M5STACK_NANOC6: Add new M5Stack C6 board definition.

Signed-off-by: Matt Trentini <matt.trentini@gmail.com>
This commit is contained in:
Matt Trentini 2024-05-01 10:29:07 +10:00 committed by Damien George
parent 1bd312d737
commit ee92198c8a
5 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,21 @@
{
"deploy": [
"deploy_nanoc6.md"
],
"docs": "",
"features": [
"BLE",
"WiFi",
"RGB LED",
"USB",
"USB-C",
"JST-PH"
],
"images": [
"m5stack_nanoc6.jpg"
],
"mcu": "esp32c6",
"product": "M5Stack NanoC6",
"url": "https://shop.m5stack.com/products/m5stack-nanoc6-dev-kit",
"vendor": "M5Stack"
}

View File

@ -0,0 +1,18 @@
Program your board using the esptool.py program, found
[here](https://github.com/espressif/esptool).
To put the NanoC6 into 'update mode', hold the button while connecting the USB
cable. It can be released after the connection is made.
If you are putting MicroPython on your board for the first time then you should
first erase the entire flash using:
```bash
esptool.py --chip esp32c6 --port /dev/ttyUSB0 erase_flash
```
From then on program the firmware starting at address 0x0:
```bash
esptool.py --chip esp32c6 --port /dev/ttyUSB0 --baud 460800 write_flash -z 0x0 M5STACK_NANOC6-20240602-v1.24.0.bin
```

View File

@ -0,0 +1,7 @@
set(IDF_TARGET esp32c6)
set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
${SDKCONFIG_IDF_VERSION_SPECIFIC}
boards/sdkconfig.ble
)

View File

@ -0,0 +1,8 @@
#define MICROPY_HW_BOARD_NAME "M5Stack NanoC6"
#define MICROPY_HW_MCU_NAME "ESP32C6"
#define MICROPY_HW_ENABLE_SDCARD (0)
#define MICROPY_PY_MACHINE_I2S (0)
#define MICROPY_HW_I2C0_SCL (1)
#define MICROPY_HW_I2C0_SDA (2)

View File

@ -0,0 +1,7 @@
G1,GPIO1
G2,GPIO2
IR_LED,GPIO3
LED_BLUE,GPIO7
BUTTON,GPIO9
NEOPIXEL_POWER,GPIO19
NEOPIXEL,GPIO20
1 G1 GPIO1
2 G2 GPIO2
3 IR_LED GPIO3
4 LED_BLUE GPIO7
5 BUTTON GPIO9
6 NEOPIXEL_POWER GPIO19
7 NEOPIXEL GPIO20