M5Stamp C3

The M5Stamp-C3 is a development board based on the Espressif ESP32-C3 a powerful chip that is used on many different board mostly because of the built-in radio that can be used for WiFi or Bluetooth wireless connections.

Interfaces

InterfaceHardware SupportedTinyGo Support
GPIOYESYES
UARTYESYES
SPIYESYES
I2CYESNot yet
ADCYESYES
PWMYESNot yet
USBDeviceYESNot yet
WiFiYESNot Yet
BluetoothYESNot yet

Pins

PinHardware pinAlternative names
IO0GPIO0XTAL_32K_P
IO1GPIO1XTAL_32K_N
IO2GPIO2WS2812
IO3GPIO3
IO4GPIO4MTMS
IO5GPIO5MTDI
IO6GPIO6MTCK
IO7GPIO7MTDO
IO8GPIO8
IO9GPIO9
IO10GPIO10
IO11GPIO11VDD_SPI
IO12GPIO12SPIHD
IO13GPIO13SPISP
IO14GPIO14SPICS0
IO15GPIO15SPICLK
IO16GPIO16SPID
IO17GPIO17SPIQ
IO18GPIO18
IO19GPIO19
IO20GPIO20U0RXD, UART_RX_PIN
IO21GPIO21U0TXD, UART_TX_PIN

Machine Package Docs

Documentation for the machine package for the M5Stamp-C3

Flashing

CLI Flashing

In addition, you must install the esptool flashing tool:

https://.com/espressif/esptool#easy-installation

Now you should be able to flash your board as follows:

  • Plug your ESP32-C3 board into your computer’s USB port.

  • Build and flash your TinyGo code using the tinygo flash command. This command flashes the ESP32-C3 with the serial example:

    tinygo flash -target=m5stack-core2 examples/serial
    
  • The ESP32-C3 board should restart and then begin running your program.

Troubleshooting

Goes here

Notes

Goes here