From b666668d0e6b67e4632e65486cae814ab5abbc39 Mon Sep 17 00:00:00 2001 From: Brett Weiland Date: Thu, 12 Jan 2023 13:41:48 -0600 Subject: updating for linkedin --- src/paint.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/paint.h') diff --git a/src/paint.h b/src/paint.h index c4efb81..2a82ba0 100644 --- a/src/paint.h +++ b/src/paint.h @@ -4,10 +4,18 @@ #include "ssd1306_display_driver.h" #include "br24t_eeprom_driver.h" +typedef const struct font { + EEPROM_ADDR *font; + uint8_t width; + uint8_t height; + uint16_t first_char; +} font_t; + void screen_clear(); void draw_image(EEPROM_ADDR image); void draw_hline(int pos_y); -void draw_text(char *text, int x, int y, EEPROM_ADDR font); +void draw_text(char *text, int x, int y, font_t font); + #endif -- cgit v1.2.3