Base Commands - TBTerra/pictor GitHub Wiki
These functions handle the byte communication between pictor and the display.
inline void pictorCmdWrite(const uint8_t Cmd);Sends a command byte to the screen.
Parameters:
-
Cmd- The 8-bit command byte for the screen (see ILI9341 datasheet).
inline void pictorByteWrite(const uint8_t Data);Sends a data byte to the screen.
Parameters:
-
Data- The 8-bit data byte.
inline void pictorWordWrite(uint16_t Value);Sends two data bytes to the screen.
Parameters:
-
Value- The 16-bit data word.
inline uint8_t pictorByteRead();Returns a data byte read from the screen.
Return Value:
- 8-bit data byte from the screen.
inline uint16_t pictorWordRead();Returns a word from two data bytes read from the screen.
Return Value:
- 16-bit data word from the screen.
void pictorBacklightState(const int8_t State);Sets the state of the backlight.
Parameters:
-
State- Backlight state (1 = ON, 0 = OFF, -1 = TOGGLE).
void pictorFrame();Toggles the VSYNC pin to update the screen in VSYNC mode.
Note:
- Exceeding 84Hz will not draw the bottom of the screen replacing it with a white stripe.
- Refreshing the screen at below 30Hz will cause visible flickering in blocks of colour,
- Refreshing at below 5Hz will cause the screen to begin to fade to white in between frames.