
Arduino Quick Start
1.Arduino IDE Installation: Refer to Arduino IDE Installation Guide to complete the IDE installation.
2.Board Manager Installation: Refer to Basic Environment Setup Guide to complete the M5Stack board manager installation and select the development board M5UnitPoEP4.
M5Unified and M5GFX driver libraries, and follow the prompts to install all the required libraries.
Connect the device to your computer via a USB Type-C cable. Press and hold the side reset button for about 2 seconds until the green LED lights up. Release the button and the device will enter download mode, ready for programming.
Open the built-in example program Basic -> AnalogReadSerial in Arduino, click the upload button, and the program will be compiled and uploaded to the Unit PoE-P4.
After uploading, open the Serial Monitor and set the baud rate to 115200 to view the analog input values.