Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uint8_t VRAM[8][128]; // 8 * 8 (Bits) = 64
- void setPixel( uint8_t y, uint8_t x )
- {
- uint8_t index = y / 8;
- uint8_t yBitPos = y % 8;
- VRAM[index][x] |= 1<<yBitPos;
- }
- void clearPixel( uint8_t y, uint8_t x )
- {
- uint8_t index = y / 8;
- uint8_t yBitPos = y % 8;
- VRAM[index][x] &= ~(1<<yBitPos);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement