Skip to content

Instantly share code, notes, and snippets.

@botamochi6277
Created August 29, 2020 08:43
Show Gist options
  • Save botamochi6277/a2725d617cf51bc57788c867e0e34bab to your computer and use it in GitHub Desktop.
Save botamochi6277/a2725d617cf51bc57788c867e0e34bab to your computer and use it in GitHub Desktop.
M5Atom Matrix Display Test
#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