Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#include <Arduboy2.h>
Arduboy2 arduboy;
void setup()
{
arduboy.begin();
}
void loop()
{
if (!arduboy.nextFrame())
return;
for(size_t index = 0; index < 1024; ++index)
arduboy.sBuffer[index] = ((index % 2) == 0) ? 0xAA : 0x55;
arduboy.display();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment