EpdFillColorPlane()

Library Description ›› EPD ›› Common ›› Display ››
Parent Previous Next

Syntax

EpdFillColorPlane(wColor As Word)

Parameters

wColor — WHITE, BLACK, RED/YELLOW


Fills the selected driver IC GRAM plane with a single color.


This sends all 1s to the corresponding plane for White or Red/Yellow, and all 0s for Black.
Note that Red/Yellow here isn't two separate options to choose between — a given physical 3 color panel (as currently supported by the Library) is fixed as either BWR or BWY by its actual ink, not by software so this represents whichever color that panel's second plane physically carries.


Note: The Red/Yellow plane is binary — a pixel is either that color or it isn't, with no third state.
EpdFillColorPlane() can set the entire plane to that color (all 1s), but has no equivalent option to clear it back to all-0s ("not red/yellow everywhere") — there's no wColor value for that.
To clear the Red/Yellow plane specifically, call EpdResetRedPlane() instead.


EpdResetRedPlane()

EpdFillColorPlane(WHITE)

EpdFrameUpdate(EPD_UPDATE_LUT)

EpdFillColorPlane(BLACK)

EpdFrameUpdate(EPD_UPDATE_NORMAL)

EpdFillColorPlane(WHITE)

EpdFrameUpdate(EPD_UPDATE_NORMAL)

Created with the Personal Edition of HelpNDoc: Benefits of a Help Authoring Tool