[Solved] Cannot read button state (with pull down)

Hi,
Try ledPin = 13;

or what ever the 1000 has as its onboard LED.

kleag:
If I add a led with its 220 Ohms resistor between the +5V and the button, it lights on when the button is pressed.

The LED should not light if your button is between 5V and the 1000 input pin and you press that button because it connects the input pin to 5V.....
Have you got a DMM, it would be an advantage at this point.
So no voltage across the LED.
Tom.. :slight_smile: