This script reads the output from the band select pin of a Xiegu G90 and automatically sets the correct band on the LPFX7 Low Pass Filter designed for use with the PAX100 amp. It also bypasses the amp when using bands there is no filter for.
Right now this is all on a breadboard. The software seems to behave itself, once I have the hardware bugs worked out I'll add a schematic.