SetPalette Function

Microchip Graphics Library

Microchip Graphics Library
SetPalette Function
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.

Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved