SetEntirePalette Macro

Microchip Graphics Library

Microchip Graphics Library
SetEntirePalette Macro
C
#define SetEntirePalette(pPalette) SetPalette(pPalette, 0, 256)
Overview

Programs the whole 256 entry palette with new color values from flash.

Input Parameters
Input Parameters 
Description 
pPalette 
Pointer to the palette structure 
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