pi_alarm icon indicating copy to clipboard operation
pi_alarm copied to clipboard

Turn Light Off If GPIO Input equals High

Open criative opened this issue 5 years ago • 0 comments

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?

criative avatar May 18 '19 06:05 criative