Created
May 11, 2014 17:46
-
-
Save dagon666/eed1dd0b936a92830927 to your computer and use it in GitHub Desktop.
pcd8544 sierpinski
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
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