Arduino Quick Start
M5AtomS3R
(Atom EchoS3R and AtomS3R use the same main controller).M5Unified
and M5GFX
libraries, and install all required dependencies as prompted.Connect the device to the computer using a USB-C cable. Press and hold the side reset button for 3 seconds until the green LED flashes. The device will then enter download mode, and you can select the corresponding main controller and device port in Arduino IDE.
#include "M5Unified.h"
void setup() {
M5.begin();
}
void loop() {
M5.Speaker.tone(7000, 100); // frequency, duration
delay(1000);
M5.Speaker.tone(4000, 20); // frequency, duration
delay(1000);
}
Copy the above program into Arduino IDE, click the upload button, and after compilation and uploading, the program will use the speaker to play beep sounds.