From 908ecfc1d7c51b3b51a2a9017d359e9eb8bacae8 Mon Sep 17 00:00:00 2001 From: Eggert Jung Date: Fri, 13 Aug 2021 06:05:13 +0200 Subject: [PATCH] add variable spacing and scalable font --- main/hello_world_main.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/main/hello_world_main.c b/main/hello_world_main.c index 32ecb11..535c410 100644 --- a/main/hello_world_main.c +++ b/main/hello_world_main.c @@ -165,19 +165,25 @@ uint8_t check_chr_width(uint8_t chr[]){ return 2; //space character } -void put_chr(uint8_t line, uint8_t pos, uint8_t chr[]){ +void put_chr(uint8_t line, uint8_t pos, uint8_t chr[], uint8_t size){ for(int i=0;i<8;i++) for(int j=0;j<7;j++){ - fb[1+(line*10)+i][(pos)+j][0] = (chr[j]&(1<>i; + uint8_t val = (chr[j]&(1<>i; + for(int x=0;x