Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1008)

Unified Diff: target/dartuinoP0/include/target/display/LS013B7DH06.h

Issue 1741463002: [target][dartuinoP0] Allow for varying framebuffer format and stride. (Closed) Base URL: https://github.com/littlekernel/lk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « target/dartuinoP0/include/target/display/LS013B7DH03.h ('k') | target/dartuinoP0/include/target/display/LS027B7DH01.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698