- Arduino IDE
- M5Stack
- USB Type-C to USB Cable
Please ensure you have Arduino IDE installed and the board disconnected.
- Open Arduino IDE
- Go into Preferences
- Add
https://dl.espressif.com/dl/package_esp32_index.json
as an 'Additional Board Manager URL' - Go to Boards Manager from the Tools -> Board menu
- Search for esp32 and install esp32.
- Download and install the CP2104 driver
- Connect the M5Stack board via USB Type-C cable to your computer
- Go into Tools -> Board and select M5Stack-Core-ESP32 from the list
- Under Tools -> Port select the appropriate device ie. COM1, /dev/cu.SLAB_USBtoUART
- Test uploading to the board by uploading an empty sketch to make sure there are no issues.
- From this repository, open arduino/sample/sample.ino
- Change the
USER_SERVICE_UUID
to your generated UUID - Upload and Enjoy!