Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Feb 2015 19:36:58 +0800
From:      Erich Dollansky <erichsfreebsdlist@alogt.com>
To:        Milan Obuch <freebsd-arm@dino.sk>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Raspberry Pi with PiTFT - some GPIO weirdness
Message-ID:  <20150228193658.6c872779@B85M-HD3-0.alogt.com>
In-Reply-To: <20150228111852.15affe31@zeta.dino.sk>
References:  <20150228111852.15affe31@zeta.dino.sk>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Sat, 28 Feb 2015 11:18:52 +0100
Milan Obuch <freebsd-arm@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150228193658.6c872779>