Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to use GPIOs

24 bytes added, 16:42, 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 Now 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#
</pre>
The text above show shows that driver work works properly, GPIO_136 is configure configured like input and GPIO_137 is configure configured like output with value 0, now when read GPIO_136 and the result is 0. To make sure that works well, configure GPIO_137 with value 1 and , now GPIO_136 read reads 1. <br> This driver have more options like IRQ, but is not explained here.
'''Under construction'''
4,199
edits