Skip to content

Instantly share code, notes, and snippets.

@AlexanderSavochkin
Created July 21, 2015 06:39
Show Gist options
  • Save AlexanderSavochkin/664ca0eaa0a8985efdc1 to your computer and use it in GitHub Desktop.
Save AlexanderSavochkin/664ca0eaa0a8985efdc1 to your computer and use it in GitHub Desktop.
Print symbol function
void PrintSymbol(short code, ColorRGB *colorRGB)
{
for (unsigned short y = 0; y < 8; ++y) {
for (unsigned short x = 0; x < 8; ++x)
{
if (font8x8_basic[code][y] & (1 << x))
Colorduino.SetPixel(7-x, y, colorRGB->r, colorRGB->g, colorRGB->b);
else
Colorduino.SetPixel(7-x, y, 0, 0, 0);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment