I have a C header file that contains 10×12 pixel bitmap font characters in an array of 2×12 (for a mono color lcd). This wastes the lower 6-bits of every other byte, not to mention being harder to render for having to skip the paddings.
What is the easiest way to convert this to simple serialized bits without the padded bits?
the solution that I see has a lot of complicated bit banging. Is there an easy way to do perform this?
0x00,0x00, /* ................ */
0x30,0x00, /* ..@@............ */
0x78,0x00, /* .@@@@........... */
0x48,0x00, /* .@..@........... */
0xCC,0x00, /* @@..@@.......... */
0xCC,0x00, /* @@..@@.......... */
0xCC,0x00, /* @@..@@.......... */
0xFC,0x00, /* @@@@@@.......... */
0xCC,0x00, /* @@..@@.......... */
0xCC,0x00, /* @@..@@.......... */
0x00,0x00, /* ................ */
0x00,0x00 /* ................ */
A simplified version can create a producer consumer going one bit at a time which keeps the bit banging to a sane level. Here’s what I ended up doing: