C
BYTE SetPalette( void * pPalette, WORD startEntry, WORD length );
Overview
Programs a block of palette entries starting from startEntry and until startEntry + length from the flash immediately.
Input Parameters
Input Parameters |
Description |
void * pPalette |
Pointer to the palette structure |
WORD startEntry |
Start entry to load (inclusive) |
WORD length |
Number of entries |
Returns
Returns the status of the palette set. 0 - Set was successful 1 - Set was not successful
Preconditions
Palette must be initialized by PaletteInit().
Side Effects
There may be a slight flicker when the Palette entries are getting loaded one by one.