Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to use GPIOs

13 bytes added, 16:08, 9 January 2012
no edit summary
=== Read/Write test ===
Link GPIO_136 and GPIO_137 with a wire, these pins are located in J990 connector with numbers 7 and 9. Type next text:<pre>root@localhost:~/svn.hylands.org/linux/gpio/app# ./gpio input 136
root@localhost:~/svn.hylands.org/linux/gpio/app# ./gpio output 137 0
root@localhost:~/svn.hylands.org/linux/gpio/app# ./gpio get 136
1
root@localhost:~/svn.hylands.org/linux/gpio/app#
</pre>The text above show that driver work properly, GPIO_136 is configure like input and GPIO_137 is configure like output with value 0, now read GPIO_136 and the result is 0. To make sure configure GPIO_137 with value 1 and GPIO_136 read 1.<br>This driver have more options like IRQ, but is not explained here. '''Under construction'''<br>
<br> '''Under construction'''
<br> ExampleOther examples:[[What can I do with IGEP0020#How_to_handle_the_gpio-LED.27s]]
[[Category:Work_in_progress|Work_in_progress]] [[Category:Communications]]
4,199
edits