35 const uint8_t PALETTE_BLACK = 0;
36 const uint8_t PALETTE_BLUE = 1;
37 const uint8_t PALETTE_GREEN = 2;
38 const uint8_t PALETTE_CYAN = 3;
39 const uint8_t PALETTE_RED = 4;
40 const uint8_t PALETTE_MAGENTA = 5;
41 const uint8_t PALETTE_YELLOW = 6;
42 const 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_GetPixel(int x, int y)
void LCD_SetPixelFromPalette(int x, int y, uint8_t index)
uint16_t * LCD_GetVRAMAddress()
void LCD_GetSize(int *width, int *height)
void LCD_SetPixel(int x, int y, uint16_t color)