X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/a091c966e5377c1dea045747d8478b734e5c66c9..11d3519339b45996592aa5b43669c9cd8cc495b1:/sprites/fontdata.c?ds=inline diff --git a/sprites/fontdata.c b/sprites/fontdata.c index 941d8c7..3d9f044 100644 --- a/sprites/fontdata.c +++ b/sprites/fontdata.c @@ -1,3 +1,4 @@ +#include #include unsigned char const font5x8[] = { @@ -229,7 +230,11 @@ unsigned char const font5x8[] = { int main(void) { FILE *fd = fopen("font.dat", "wb"); + size_t i; + + for(i = 0; i < sizeof(font5x8); ++i) { + fputc(font5x8[i] >> 1, fd); + } - fwrite(font5x8, 1, sizeof(font5x8), fd); fclose(fd); }