Macros | |
#define | BLACK |
color to turn on pixel | |
#define | PIXEL_OFF |
color to turn off pixel - same as WHITE | |
#define | PIXEL_ON |
color to turn on pixel - same as BLACK | |
#define | WHITE |
color to turn off pixel | |
Enumerations | |
enum | glcd_device_mode { NON_INVERTED, INVERTED } |
Init() initialization modes More... | |
enum glcd_device_mode |
Init() initialization modes
In "normal" or NON_INVERTED mode, pixels are turned on for PIXEL_ON or BLACK and turned off for PIXEL_OFF or WHITE.
In "inverted" or INVERTED mode, pixels are turned off for PIXEL_ON or BLACK and turned on for PIXEL_OFF or WHITE.
NON_INVERTED mode clears the display with all pixels off and drawing with PIXEL_ON or BLACK will turn on pixels.
INVERTED mode clears the display with all pixels on and drawing with PIXEL_ON or WHITE will turn on pixels.
The terminology of BLACK and WHITE is from the perspective of a display that uses black pixels on a light background. For example, if a pixel is set to BLACK and used on a black pixel on light background display, you get a black pixel. If the display is a white pixel on dark background display, then setting a pixel to BLACK turns on white pixel on the display.
Because of this, it can be less confusing to use PIXEL_ON and PIXEL_OFF vs BLACK and WHITE.
Enumerator | |
---|---|
NON_INVERTED |
"normal" mode |
INVERTED |
"inverted" mode |