I have purchased a Digispark for my project. I am wanting to use it to toggle a LED strip on and off with a camera command from a quadcopter. The LEDs are wrapped around my quad and I wanted a remote control for them.
The quadcopter outputs a 3.3V signal all the time on the camera command leg. When the transmitter button is pressed the quad will break this voltage go to zero volts then return to a constant 3.3.
I want the Digispark to toggle a transistor to turn the LED strip on and off but I'm having trouble getting a code to read the voltage and output the correct signal to the transistor.
I have the quad signal on P0 and the Transistor gate on P1. The Digispark is powered by a USB connector I soldered together on the bottom of the quadcopter.
Any thoughts? Thanks for any help!