A basic graphics package for the LPC4088 Display Module.
Dependents: lpc4088_displaymodule_demo_sphere sampleGUI sampleEmptyGUI lpc4088_displaymodule_fs_aid ... more
Fork of DMBasicGUI by
SWIM color definitions
The Simple Windows Interface manager (SWIM) supports 8-bit RGB332, 12-bit RGB 444 (in a 16-bit field), 15-bit RGB555, 16-bit RGB565, and 24-bit RGB888 (in a 32-bit field) color. More...
Functions | |
void | lpc_colors_set_palette (uint16_t *palette_table) |
Generate a palette table (only in 8-bit mode) |
Detailed Description
The Simple Windows Interface manager (SWIM) supports 8-bit RGB332, 12-bit RGB 444 (in a 16-bit field), 15-bit RGB555, 16-bit RGB565, and 24-bit RGB888 (in a 32-bit field) color.
SWIM is configured for the color type at build-time based on the the COLORS_DEF definitions. Select one of the following values to configure SWIM. 8-bit RGB332 : COLORS_DEF = 8 12-bit RGB444: COLORS_DEF = 12 15-bit RGB555: COLORS_DEF = 15 16-bit RGB565: COLORS_DEF = 16 24-bit RGB888: COLORS_DEF = 24
Function Documentation
void lpc_colors_set_palette | ( | uint16_t * | palette_table ) |
Generate a palette table (only in 8-bit mode)
- Parameters:
-
palette_table : Pointer to palette table (256 entries)
- Returns:
- Nothing
- Note:
- Depending on the target LCD color mapping (either 555 or 565), a palette table will be generated to convert colors stored in 233 format to either 555 or 565 format through a lookup table. If compiled in 16-bit color mode, this will be a NULL function. Select the appropriate define in this function for 555 or 565 color mode displays when using an 256 color frame buffer.
Definition at line 51 of file lpc_colors.c.
Generated on Tue Jul 12 2022 21:27:04 by 1.7.2