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
#pragma once | |
static void drawOverwrite( | |
int16_t x, int16_t y, | |
uint8_t const* image, uint8_t frame) | |
{ | |
if(image == nullptr) return; | |
if(x >= 128 || y >= 64) return; | |
uint8_t w, h; |
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
/* | |
Arduboy 128x64 grayscale proof of concept | |
Inspired by Thumby method of setting mux ratio to 1 to sync frames: | |
https://github.com/Timendus/thumby-grayscale | |
Relevant Arduboy forum discussion: | |
https://community.arduboy.com/t/greyscale-for-arduboy/3032/40 | |
Thanks to @dxb for extremely helpful discussion and hints: | |
https://gist.github.com/dxxb/989ae92ab8e7637c22a639ef98c8f9e6 |