LED: M5Stack ATOM Matrix
atom_tutorial_led
code: main.cpp
void setup() {
M5.begin(true, false, true);
}
void loop() {
for (int y = 0; y < 5; ++y) {
for (int x = 0; x < 5; ++x) {
M5.dis.drawpix(x, y, 0xff0000); // oder of color code: GRB
delay(250);
M5.dis.drawpix(x, y, 0x00ff00);
delay(250);
M5.dis.drawpix(x, y, 0x0000ff);
delay(250);
M5.dis.drawpix(x, y, 0x000000);
delay(250);
}
}
}