Skip to content

Instantly share code, notes, and snippets.

@dagon666
Created May 11, 2014 17:46
Show Gist options
  • Save dagon666/eed1dd0b936a92830927 to your computer and use it in GitHub Desktop.
Save dagon666/eed1dd0b936a92830927 to your computer and use it in GitHub Desktop.
pcd8544 sierpinski
uint8_t buffer[(PCD8544_W * PCD8544_H) >> 3] = {0x00};
for (uint8_t x = 0; x < PCD8544_W; x++) {
for (uint8_t y = 0; y < PCD8544_H; y++) {
if (!(x&y)) PCD8544_SET_BIT_HIGH(buffer, x, y);
}
}
pcd8544_blit(&lcd, buffer);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment