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

Unified Diff: target/dartuinoP0/include/target/display/LS027B7DH01.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
« no previous file with comments | « target/dartuinoP0/include/target/display/LS013B7DH06.h ('k') | target/dartuinoP0/memory_lcd.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: target/dartuinoP0/include/target/display/LS027B7DH01.h
diff --git a/target/dartuinoP0/include/target/display/LS027B7DH01.h b/target/dartuinoP0/include/target/display/LS027B7DH01.h
index bde64f6fed0781cc51d719045cb9aa55e29fd952..e34889f11afeb3b562ab448a02f4b24d7269ac0e 100644
--- a/target/dartuinoP0/include/target/display/LS027B7DH01.h
+++ b/target/dartuinoP0/include/target/display/LS027B7DH01.h
@@ -25,13 +25,15 @@
#pragma once
-#include <lib/gfx.h>
+#include <dev/display.h>
#define MLCD_WIDTH ((uint16_t)400)
#define MLCD_HEIGHT ((uint16_t)240)
-#define MLCD_GFX_FORMAT (GFX_FORMAT_MONO)
// 1 bit per pixel divided by 8 bits per byte
#define MLCD_BYTES_LINE (MLCD_WIDTH / 8)
+#define FB_FORMAT (DISPLAY_FORMAT_MONO_8)
+#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/LS013B7DH06.h ('k') | target/dartuinoP0/memory_lcd.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698