Raspberry Pi with PiTFT - some GPIO weirdness

Erich Dollansky erichsfreebsdlist at alogt.com
Sat Feb 28 11:37:19 UTC 2015


Hi,

On Sat, 28 Feb 2015 11:18:52 +0100
Milan Obuch <freebsd-arm at dino.sk> wrote:

> today I found some time to play a bit with my little display attached
> to Rasoberry Pi, and I decided to test buttons connected to GPIO, as
> this should work on FreeBSD already. According docs, buttons are
> connected to GPIO lines 23, 22, 21 and 18, leftmost first.
> 
> Using basic 'gpioctl -f /dev/gpioc0 -lv' command I found only first
> one, on line 23, reacts. It has value 1 normally and 0 when pressed.
> 
you must setup the pins as inputs first before using them as inputs. I
would not rely on any defaults.

Erich


More information about the freebsd-arm mailing list