
Arduino Quick Start
M5AtomS3.
Press and hold the reset button for about 2 seconds until the internal green LED lights up, then release — the device will enter download mode and be ready for flashing.
Connect the device to your computer via USB. After the device enters download mode, select the corresponding port in the Arduino IDE.
Note: Please set Tools -> USB-CDC On Boot to Enabled in Arduino IDE; otherwise the serial port will not be available. The option location is shown below.
Open Arduino, paste the code below and click the upload button. The sketch will be compiled and uploaded to the AtomS3U.
#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.