Page 1 of 1

GPIO read...

Posted: Thu Dec 20, 2012 1:50 am
by theend
I installed WiringPi. When i typing
"gpio mode 0 in"
"gpio read 0"
then i allways get other values.
1 or 0

The button is connected to: GND(6) and GPIO-17=pin 11
But the button isnt pressed.

Whats the problem?

Re: GPIO read...

Posted: Thu Dec 20, 2012 5:34 am
by JPB-HK
Did you use a pullup resistor or did you set the internal pullup resistor?

Code: Select all

mode 0, up
Not sure the order of this, whether it should go after the mode in command.
John