
Arduino Quick Start
1. Arduino IDE Installation: Refer to the Arduino IDE Installation Tutorial to complete the IDE installation.
2. Board Manager Installation: Refer to the Basic Environment Setup Tutorial to complete the M5Stack Board Manager installation and select the M5CoreP4X board.
M5Unified and M5GFX libraries, and install all dependent libraries as prompted.
Connect the USB-C Data/PwrIn port of the CoreP4X with a USB Type-C data cable. Normally, the program can be uploaded directly. If an upload error occurs, long-press the power button to enter download mode, and release it after the device is recognized by the computer.
Connect the device to the computer with a USB Type-C data cable, and select the corresponding device port in the Arduino IDE.
Open the BarGraph example in the M5GFX library, select the M5CoreP4X board, and click the upload button; the program will be compiled and uploaded.
The display effect is as follows: