pdf-icon

Arduino Quick Start

AtomS3 LED

AtomS3 Lite RGB LED Control
cpp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <M5AtomS3.h>
void setup() {
AtomS3.begin(true); // Init M5AtomS3Lite.
AtomS3.dis.setBrightness(100);
}
void loop() {
AtomS3.dis.drawpix(0xff0000);
AtomS3.update();
delay(500);
AtomS3.dis.drawpix(0x00ff00);
AtomS3.update();
delay(500);
AtomS3.dis.drawpix(0x0000ff);
AtomS3.update();
delay(500);
}
On This Page