Post topics, source code that relate to the Arduino Platform

User avatar
By AlexPilk
#23592
martinayotte wrote:Nope ! In your latest drawing you are actually shorting the GPIO to VCC.
Simply switch resistor and button on your original diagram, making the button connected to GND and the resistor to VCC, acting as a PullUp.
image.jpg


Thanks a lot, it worked!