35const uint8_t PALETTE_BLACK = 0;
36const uint8_t PALETTE_BLUE = 1;
37const uint8_t PALETTE_GREEN = 2;
38const uint8_t PALETTE_CYAN = 3;
39const uint8_t PALETTE_RED = 4;
40const uint8_t PALETTE_MAGENTA = 5;
41const uint8_t PALETTE_YELLOW = 6;
42const uint8_t PALETTE_WHITE = 7;
53#define RGB_TO_RGB565(r, g, b) ( \
54 ((r & 0x1F) << 11) | \
65#define RGB565_TO_R(rgb565) ((rgb565 >> 11) & 0x1F)
73#define RGB565_TO_G(rgb565) ((rgb565 >> 5) & 0x3F)
81#define RGB565_TO_B(rgb565) (rgb565 & 0x1F)
uint16_t * LCD_GetVRAMAddress()
uint16_t LCD_GetPixel(int x, int y)
void LCD_SetPixelFromPalette(int x, int y, uint8_t index)
void LCD_GetSize(int *width, int *height)
void LCD_SetPixel(int x, int y, uint16_t color)