pi_alarm
pi_alarm copied to clipboard
Turn Light Off If GPIO Input equals High
I'm trying to figure out how to add a physical switch, and the simplest way I can figure based on my current setup is --->>> if GPIO 12 = High (switch is on) run the same function as /off to switch
This isn't an issue with your code at all, just trying to blend Raspberry Pi w/ an Arduino, Neopixels, Mosfet driven White pixel strip, and an on off switch... and this last little snippet of code is where I'm stuck before I can actually start using this thing.
Any chance you could help me out?