I'm working on 8x8 led dot matrix project, and download hex basic font for ASCII chars and symbols from a library.
Everything is good, but when testing the data is flipped over, where the array is 760 bytes divided by 8.
Then I have to flip each 8-bytes which would be 95 times on the calculator website.
My link
Example of data:
uint8_t ascii_array[760] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // U+0020 (space) 0x18, 0x3C, 0x3C, 0x18, 0x18, 0x00, 0x18, 0x00, // U+0021 (!) 0x36, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // U+0022 (") 0x36, 0x36, 0x7F, 0x36, 0x7F, 0x36, 0x36, 0x00, // U+0023 (#) . . . };
For example, A is:
0xc, 0x1e, 0x33, 0x33, 0x3f, 0x33, 0x33, 0x0
And when flipping it on the website, the result is:
0x0, 0xcc, 0xcc, 0xfc, 0xcc, 0xcc, 0x78, 0x30
Could I develop a function to flip all the bytes in the array?