Created
August 29, 2020 08:43
-
-
Save botamochi6277/a2725d617cf51bc57788c867e0e34bab to your computer and use it in GitHub Desktop.
M5Atom Matrix Display Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "M5Atom.h" | |
/* this Example only for M5Atom Matrix */ | |
bool IMU6886Flag = false; | |
void setup() | |
{ | |
M5.begin(true, false, true); | |
delay(50); | |
} | |
void loop() | |
{ | |
// assign pixel id (0--24) | |
for (uint8_t i = 0; i < 25; i++) | |
{ | |
M5.dis.clear(); | |
M5.dis.drawpix(i, CRGB::White); | |
delay(500); | |
M5.update(); | |
} | |
// assign pixel position (x,y) | |
for (uint8_t i = 0; i < 5; i++) | |
{ | |
M5.dis.clear(); | |
M5.dis.drawpix(i, i, CRGB::Blue); | |
delay(500); | |
M5.update(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment