Switch two arrays of 2m+70cm antennas

Good afternoon. I would like to use two arrays of 2m+70cm antennas. I want to switch arrays using a SPDT-switches. Is it possible to somehow add GPIO Pi5 output control to the pi5 firmware image so that can switch between two arrays, for example, checkbox in web interface control? Now I have only one 70 cm array, but I want to add a second one and spread them vertically. I don’t want to lay a separate cable to control the SPDT switches.


foto1