theend
Posts: 1
Joined: Thu Dec 20, 2012 1:39 am

GPIO read...

Thu Dec 20, 2012 1:50 am

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?

JPB-HK
Posts: 56
Joined: Thu Nov 22, 2012 5:00 pm

Re: GPIO read...

Thu Dec 20, 2012 5:34 am

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
NCR 310 - ZX81 - Apple II+ - Dell/Intel - Mac mini... Raspberry Pi!

Return to “Automation, sensing and robotics”