commit 4709227ceb26439bc24b36f054ce9249dd6aba22
parent e8b857e270c4d27caa1f3cc3cf28c31c5ba8c8f5
Author: mntmn <lukas@mntmn.com>
Date: Thu, 28 Nov 2019 20:58:46 +0100
add display poke function
Diffstat:
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/reform-keyboard2-fw/ssd1306.c b/reform-keyboard2-fw/ssd1306.c
@@ -417,6 +417,10 @@ void matrix_write_char(struct CharacterMatrix *matrix, uint8_t c) {
matrix_write_char_inner(matrix, c);
}
+void gfx_poke(uint8_t x, uint8_t y, uint8_t c) {
+ display.display[y][x] = c;
+}
+
void iota_gfx_write_char(uint8_t c) {
matrix_write_char(&display, c);
}
diff --git a/reform-keyboard2-fw/ssd1306.h b/reform-keyboard2-fw/ssd1306.h
@@ -67,6 +67,7 @@ struct CharacterMatrix {
struct CharacterMatrix display;
+void gfx_poke(uint8_t x, uint8_t y, uint8_t c);
bool iota_gfx_init(bool rotate);
void iota_gfx_task(void);
bool iota_gfx_off(void);