Panda381 / PicoVGA

VGA/TV display on Raspberry Pico
200 stars 40 forks source link

Change the GPIO pins #17

Open SteveMunson opened 1 year ago

SteveMunson commented 1 year ago

How can I change the GPIO pins used in the PicoVGA library? In other words, my project has the eight video pins on non-sequential GPIOs. Is there a config file where I can specify that VGA_B0 is GPIO14, VGA_B1 is GPIO15, VGA_G0 is GPIO2, etc.....

Panda381 commented 1 year ago

It is possible to select only the first pin, VGA_GPIO_FIRST, defining B0 (in the vga_config.h file). The other GPIO must follow continuously - this is by the principle of the PIO module, which does not allow to use the pins in a different order.