OpenSprinkler Forums OpenSprinkler Unified Firmware Need positive logic from the 74HC595 output Reply To: Need positive logic from the 74HC595 output

#39138

Ray
Keymaster

Instead of modifying the gpio functions, you can do it at a higher level by modifying the apply_all_station_bits function:
https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/OpenSprinkler.cpp#L574
This is where the station bits are pushed to the shift register. Just switch the order of HIGH and LOW and you should get reverse logic.