Index: target/dartuinoP0/include/target/display/LS013B7DH06.h |
diff --git a/target/dartuinoP0/include/target/display/LS013B7DH06.h b/target/dartuinoP0/include/target/display/LS013B7DH06.h |
index 10249b26f1abade242f8c8f0fa48008ada7eda8f..17564939423dfe9a19b8c7e458e160406ed9ddfc 100644 |
--- a/target/dartuinoP0/include/target/display/LS013B7DH06.h |
+++ b/target/dartuinoP0/include/target/display/LS013B7DH06.h |
@@ -25,13 +25,15 @@ |
#pragma once |
-#include <lib/gfx.h> |
+#include <dev/display.h> |
#define MLCD_WIDTH ((uint16_t)128) |
#define MLCD_HEIGHT ((uint16_t)128) |
-#define MLCD_GFX_FORMAT (GFX_FORMAT_RGB_332) |
// 3 bits per pixel (1 for each of RBG) divided by 8 bits per byte. |
#define MLCD_BYTES_LINE ((MLCD_WIDTH * 3) / 8) |
+#define FB_FORMAT (DISPLAY_FORMAT_RGB_332) |
+#define FB_STRIDE (MLCD_WIDTH) |
+ |
uint8_t lcd_get_line(uint8_t *framebuffer, uint8_t idx, uint8_t *result); |