|
FabGL
ESP32 VGA Controller and Graphics Library
|
| void fabgl::VGAControllerClass::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);