FabGL
ESP32 Display Controller and Graphics Library
|
void begin | ( | gpio_num_t | redGPIO, |
gpio_num_t | greenGPIO, | ||
gpio_num_t | blueGPIO, | ||
gpio_num_t | HSyncGPIO, | ||
gpio_num_t | VSyncGPIO | ||
) |
This is the 8 colors (5 GPIOs) initializer.
One GPIO per channel, plus horizontal and vertical sync signals.
redGPIO | GPIO to use for red channel. |
greenGPIO | GPIO to use for green channel. |
blueGPIO | GPIO to use for blue channel. |
HSyncGPIO | GPIO to use for horizontal sync signal. |
VSyncGPIO | GPIO to use for vertical sync signal. |
Example:
// Use GPIO 22 for red, GPIO 21 for green, GPIO 19 for blue, GPIO 18 for HSync and GPIO 5 for VSync VGAController.begin(GPIO_NUM_22, GPIO_NUM_21, GPIO_NUM_19, GPIO_NUM_18, GPIO_NUM_5);
Definition at line 104 of file vgatextcontroller.cpp.