Difference between revisions of "GPIO keys"

From ArmadeusWiki
Jump to: navigation, search
(GPIO keys: user switch)
(No difference)

Revision as of 22:12, 5 June 2011

How to use gpio-keys driver to read states of the user switch of your Armadeus board (APF51)

Introduction

Your APF51 board features a user switch connected to a GPIO pin (GPIO1_3). The driver gpio-keys translates GPIO events in key/button events.


Test

# cat /dev/input/event0

Then you should see weirds characters when pressing the user button of the apf51_dev board:

 �,~~_�,}�}�3T,QToT6,TT�,�;��, � �
  • if the test wiped out your console, you can get it back with:
# reset