@jmm_73 you can try multi switch script with --onoffshim parameter there is an option for latching or momentary button included. Please remove the Pimoroni script before and call the multi switch kind off sudo ./multi_switch.sh --onoffshim