50/50 Background Pulse

"pin used" needs to be a global or static variable, or shorthand for digitalRead(pin used), but yes that will work.

Sounds like a cool project. Post a video when you're done!