pdf-icon

Arduino Guide

LED

AtomS3 Lite RGB LED Control

#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
Q&A
Submit a question
Select question category*
Arduino
MicroPython
UIFlow1
UIFlow2
EzData
M5Burner
Software
Hardware
Other
Product name
Product version
Question description*
(Supports pasting screenshots.)
Attachments
Add Files
Email*
Submit
OK

M5Stack Support

Hi, this is M5Stack Support. How can I help you today?