
Arduino Quick Start
M5StampS3Bat. M5PM1 driver library, and install all dependency libraries as prompted.
Connect the device to the computer via a USB cable, long press the PWR button for about 3 seconds to enter download mode, and wait for burning.
Select the port corresponding to the device in the Arduino IDE.
Paste the code below into the Arduino IDE workspace and click the upload button; the program will be automatically compiled and burned.
#include "Arduino.h"
void setup()
{
Serial.begin(115200);
}
void loop()
{
delay(1000);
Serial.println("Hello, world!");
}
GitHub
Arduino Example