Setting up Arduino IDE for the M5StickC Plus2
Adding the M5StickC Plus2 boards to the Arduino IDE
Summary
Add the m5_stack board reference to the Boards Manager. Install the M5StickC Plus 2 library through Library manager.
The Problem
Getting the Arduino IDE setup to flash a simple program to my M5StickC Plus2 was proving troublesome until I watched this video.
The solution
Add the M5StickC Plus2 boards to the Arduino IDE
File, preferences, Additional Boards Manager URL: https://static-cdn.m5stack.com/resource/arduino/package_m5stack_index.json
Add the M5StickC Plus2 library to the Arduino IDE
Library manager: Install M5StickC Plus 2
Build and flash an example
Restart the Arduino IDE for good luck. Select example from M5StickC Plus2 library. Tools, board manager. M5StickC Plus2 is greyed out. Select this. The core will be installed to the IDE. Printout in IDE ends with: ’’' Configuring platform. Platform m5stack:esp32@2.1.3 installed ’''
Compile sketch.
Upload sketch.
Success!