Difference between revisions of "GPIO keys"
From ArmadeusWiki
(GPIO keys: user switch) |
m (→Test) |
||
Line 10: | Line 10: | ||
# cat /dev/input/event0 | # cat /dev/input/event0 | ||
</pre> | </pre> | ||
− | Then you should see weirds characters when pressing the user button of the apf51_dev board: | + | Then you should see weirds characters '''when pressing''' the user button of the apf51_dev board: |
<pre class="apf"> | <pre class="apf"> | ||
− | � | + | T |
+ | ����T | ||
+ | �T | ||
+ | � | ||
+ | ��T | ||
+ | %� | ||
</pre> | </pre> | ||
* if the test wiped out your console, you can get it back with: | * if the test wiped out your console, you can get it back with: |
Revision as of 22:14, 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:
T ����T �T � ��T %�
- if the test wiped out your console, you can get it back with:
# reset