Author Topic: Button input not working  (Read 1602 times)

mhc

  • Newbie
  • *
  • Posts: 1
Button input not working
« on: July 09, 2017, 04:35:41 am »
First off im very sorry for being a noob.

So I built this exactly: https://www.arduino.cc/en/tutorial/button
And used this code: https://digistump.com/wiki/digispark/tutorials/button

With everything but together, the digispark will only reset(and make the PC think it connected-disconnected) and the LED doesnt switch.

If I remove the button and connect pin5 to 5V/GND(with 10k resistor) the program seems to work, but sometimes it still resets.

What am I doing wrong?

KASA

  • Newbie
  • *
  • Posts: 34
Re: Button input not working
« Reply #1 on: August 18, 2017, 04:31:16 am »
Did you connect the blue wire to pin 5 on the Digispark?