Skip to content
Snippets Groups Projects
Commit 69f32e6c authored by Mark Jackson's avatar Mark Jackson Committed by Anatolij Gustschin
Browse files

Add 16bit colour support in lcd.h


This patch adds support for LCD_COLOR16 in include/lcd.h.

Signed-off-by: default avatarMark Jackson <mpfj@mimc.co.uk>
parent bdc873ea
No related branches found
No related tags found
No related merge requests found
...@@ -326,7 +326,7 @@ void lcd_show_board_info(void); ...@@ -326,7 +326,7 @@ void lcd_show_board_info(void);
#if LCD_BPP == LCD_MONOCHROME #if LCD_BPP == LCD_MONOCHROME
# define COLOR_MASK(c) ((c) | (c) << 1 | (c) << 2 | (c) << 3 | \ # define COLOR_MASK(c) ((c) | (c) << 1 | (c) << 2 | (c) << 3 | \
(c) << 4 | (c) << 5 | (c) << 6 | (c) << 7) (c) << 4 | (c) << 5 | (c) << 6 | (c) << 7)
#elif LCD_BPP == LCD_COLOR8 #elif (LCD_BPP == LCD_COLOR8) || (LCD_BPP == LCD_COLOR16)
# define COLOR_MASK(c) (c) # define COLOR_MASK(c) (c)
#else #else
# error Unsupported LCD BPP. # error Unsupported LCD BPP.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment