
Arduino Quick Start
1. Install Arduino IDE: Follow the Arduino IDE installation guide to install the IDE.
2. Install the board package: Follow the Basic Environment Setup guide to install the M5Stack board package and select the M5ToughC5 board.
M5Unified and M5GFX libraries, then install all dependencies as prompted.
Normally, you can upload a program to ToughC5 directly through its USB cable. If an upload error occurs during development, remove the enclosure and press and hold the power button to force download mode.
Connect the device to the computer with a USB cable. If the USB driver is installed correctly, select the corresponding device port in Arduino IDE.
Open the BarGraph example in the M5GFX library and click Upload to compile and upload the program.
The display output is shown below:
GitHub
Arduino API & Examples