FabGL
ESP32 Display Controller and Graphics Library
|
|
inherited |
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 101 of file vgabasecontroller.cpp.