Hi all this may be a very silly question but I didn't want to do burn a 4.0 pins if i don't have to.
I have a circuit with a transistor and an optocoupler, basically i have a 4.0 with an output pin sending LOW by default and HIGH when i want the opto to switch, turning that pin from LOW to HIGH will be done using MIDI or thru the serialmonitor.
Now I want to add footswitches to it as well, this is as easy as wiring a footswitch to another pin, however, I'm now wondering if i could just wire the footswitch to the output pin, the footswitch is a momentary SPST switch, one pole will be connected to the teensy pin that controls the opto and the other pin to the 3v pin on the teensy.
The idea is i can set the pin HIGH or LOW via software OR have a mechanical momentary footswitch that will put 3v into that pin.
I hope this questions makes sense, my main concern is: if the pin is currently LOW and i use the footswitch to pass 3v to the pin, will this cause an issue? or if the pin is currently high and i use the footswitch to pass it 3v would this cause any issues?
I have a circuit with a transistor and an optocoupler, basically i have a 4.0 with an output pin sending LOW by default and HIGH when i want the opto to switch, turning that pin from LOW to HIGH will be done using MIDI or thru the serialmonitor.
Now I want to add footswitches to it as well, this is as easy as wiring a footswitch to another pin, however, I'm now wondering if i could just wire the footswitch to the output pin, the footswitch is a momentary SPST switch, one pole will be connected to the teensy pin that controls the opto and the other pin to the 3v pin on the teensy.
The idea is i can set the pin HIGH or LOW via software OR have a mechanical momentary footswitch that will put 3v into that pin.
I hope this questions makes sense, my main concern is: if the pin is currently LOW and i use the footswitch to pass 3v to the pin, will this cause an issue? or if the pin is currently high and i use the footswitch to pass it 3v would this cause any issues?