FabGL
ESP32 Display Controller and Graphics Library
|
void begin | ( | gpio_num_t | red1GPIO, |
gpio_num_t | red0GPIO, | ||
gpio_num_t | green1GPIO, | ||
gpio_num_t | green0GPIO, | ||
gpio_num_t | blue1GPIO, | ||
gpio_num_t | blue0GPIO, | ||
gpio_num_t | HSyncGPIO, | ||
gpio_num_t | VSyncGPIO | ||
) |
This is the 64 colors (8 GPIOs) initializer.
Two GPIOs per channel, plus horizontal and vertical sync signals.
red1GPIO | GPIO to use for red channel, MSB bit. |
red0GPIO | GPIO to use for red channel, LSB bit. |
green1GPIO | GPIO to use for green channel, MSB bit. |
green0GPIO | GPIO to use for green channel, LSB bit. |
blue1GPIO | GPIO to use for blue channel, MSB bit. |
blue0GPIO | GPIO to use for blue channel, LSB bit. |
HSyncGPIO | GPIO to use for horizontal sync signal. |
VSyncGPIO | GPIO to use for vertical sync signal. |
Example:
// Use GPIO 22-21 for red, GPIO 19-18 for green, GPIO 5-4 for blue, GPIO 23 for HSync and GPIO 15 for VSync VGAController.begin(GPIO_NUM_22, GPIO_NUM_21, GPIO_NUM_19, GPIO_NUM_18, GPIO_NUM_5, GPIO_NUM_4, GPIO_NUM_23, GPIO_NUM_15);
Definition at line 123 of file vgatextcontroller.cpp.