Skip to content

Instantly share code, notes, and snippets.

@Pharap
Created July 15, 2022 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pharap/ca848cd3bbdbff88a2637ef3b78e6adc to your computer and use it in GitHub Desktop.
Save Pharap/ca848cd3bbdbff88a2637ef3b78e6adc to your computer and use it in GitHub Desktop.
#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