From c4519fd92fbbfada5e61401ecca000ca0d928732 Mon Sep 17 00:00:00 2001 From: Eggert Jung Date: Fri, 13 Aug 2021 06:03:35 +0200 Subject: [PATCH] change pixels in font --- main/hello_world_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/hello_world_main.c b/main/hello_world_main.c index 177c423..32ecb11 100644 --- a/main/hello_world_main.c +++ b/main/hello_world_main.c @@ -69,7 +69,7 @@ const unsigned char font[96][7] = { {0x03,0x01,0x01,0x7f,0x00,0x00,0x00}, // 7 {0x7f,0x49,0x49,0x7f,0x00,0x00,0x00}, // 8 {0x0f,0x09,0x09,0x7f,0x00,0x00,0x00}, // 9 - {0x41,0x00,0x00,0x00,0x00,0x00,0x00}, // : + {0x22,0x00,0x00,0x00,0x00,0x00,0x00}, // : {0xc1,0x00,0x00,0x00,0x00,0x00,0x00}, // ; {0x08,0x14,0x22,0x00,0x00,0x00,0x00}, // < {0x14,0x14,0x14,0x14,0x00,0x00,0x00}, // = @@ -89,7 +89,7 @@ const unsigned char font[96][7] = { {0x7f,0x08,0x08,0x77,0x00,0x00,0x00}, // K {0x7f,0x40,0x40,0x60,0x00,0x00,0x00}, // L {0x7f,0x01,0x01,0x7f,0x01,0x01,0x7f}, // M - {0x7f,0x01,0x01,0x7f,0x00,0x00,0x00}, // N + {0x7f,0x04,0x08,0x10,0x7f,0x00,0x00}, // N {0x7f,0x41,0x41,0x7f,0x00,0x00,0x00}, // O {0x7f,0x09,0x09,0x0f,0x00,0x00,0x00}, // P {0x7f,0x41,0xc1,0x7f,0x00,0x00,0x00}, // Q @@ -162,7 +162,7 @@ uint8_t check_chr_width(uint8_t chr[]){ for(int i=6;i>=0;i--) if(chr[i] != 0) return i; - return 0; + return 2; //space character } void put_chr(uint8_t line, uint8_t pos, uint8_t chr[]){