PeideSuperman
Member
Hi everybody,
I am new to electronics so please forgive me for asking this basic question. I try to connect a button to Teensy and I do exactly what it says on this tutorial (https://www.pjrc.com/teensy/tutorial3.html), but I fail. I test the circuit by using the DigitalReadSerial example on Arduino, and it shows 1 when I don't touch the button, shows off-line when I touch it. However, what's supposed to show is 0 when I didn't touch it because the code is used to tell the button state.
I am using a normal breadboard button. The input pin is 19.
I am new to electronics so please forgive me for asking this basic question. I try to connect a button to Teensy and I do exactly what it says on this tutorial (https://www.pjrc.com/teensy/tutorial3.html), but I fail. I test the circuit by using the DigitalReadSerial example on Arduino, and it shows 1 when I don't touch the button, shows off-line when I touch it. However, what's supposed to show is 0 when I didn't touch it because the code is used to tell the button state.
I am using a normal breadboard button. The input pin is 19.