
Arduino Quick Start
M5StampP4 development board.
Connect the device to your computer via USB. Select the corresponding serial port in the Arduino IDE.
Enter the code below in the Arduino IDE and click the upload button. The sketch will be compiled and flashed automatically.
#include <M5Unified.h>
void setup() {
M5.begin();
Serial.begin(115200);
}
void loop() {
Serial.println("hello world!");
delay(2000);
}
After a successful upload, open the serial monitor and set the baud rate to 115200. You should see "hello world!" printed every two seconds.