Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Fixing the 4 blocks in each character
- for(int chr;chr<256;chr++) {
- uint16_t nchr[16]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
- for(int x=0;x<16;x++) {
- if(x<8) {
- nchr[x]=font[chr][x]<<8; //Put the upper left part to the right
- nchr[x]|=font[chr][x+8]; //Put the lower left part up
- } else {
- nchr[x]=font[chr][x-8]; //Put the upper right part down
- nchr[x]|=font[chr][x]>>8; //Put the lower right part left
- }
- }
- for(int x=0;x<16;x++) {
- font[chr][x]=nchr[x];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment