Skip to content

Instantly share code, notes, and snippets.

#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;
/*
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