From d4cadcc6f9ae71b9d7236bda71ec202fd6db8814 Mon Sep 17 00:00:00 2001 From: Logan H-D Date: Wed, 9 Oct 2024 23:23:06 -0400 Subject: [PATCH] add board id to lcd, other misc minor updates --- firmware/src/lcd.c | 35 +++++++++-------- hardware-case/case.scad | 21 +++++------ hardware-pcb/JukeBox.kicad_sch | 68 ++++++++++++++++++++++++---------- hardware-pcb/README.md | 2 +- 4 files changed, 77 insertions(+), 49 deletions(-) diff --git a/firmware/src/lcd.c b/firmware/src/lcd.c index 6c1426a..6c37f90 100644 --- a/firmware/src/lcd.c +++ b/firmware/src/lcd.c @@ -1,6 +1,7 @@ #include "lcd.h" #include +#include // #include #include @@ -60,11 +61,13 @@ void lcd_print(char * text, uint16_t x, uint16_t y, uint8_t s) { } void lcd_print_raw(char * text, uint16_t x, uint16_t y, uint8_t s) { - // TODO: use `s` for scaling text + uint32_t len = strlen(text); + lcd_print_raw2(text, len, x, y, s); +} +void lcd_print_raw2(char * text, uint32_t len, uint16_t x, uint16_t y, uint8_t s) { uint16_t sx = x, sy = y; - uint16_t len = strlen(text); for (uint16_t i=0; i