We're no longer updating This wiki!!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
en:c1_enhancement_gpio40 [2016/03/08 16:49]
odroid [Enhancement of 40pin GPIO]
en:c1_enhancement_gpio40 [2016/03/08 16:50]
odroid [Enhancement of 40pin GPIO]
Line 13: Line 13:
 You can access GPIOs using sysfs interface. This example uses pin number 18 which is connected to the GPIO233(GPIOX.BIT5). You can access GPIOs using sysfs interface. This example uses pin number 18 which is connected to the GPIO233(GPIOX.BIT5).
   echo 233 > /​sys/​class/​gpio/​export   echo 233 > /​sys/​class/​gpio/​export
-Configure the pin direction ​(in/out)+Configure the pin direction ​for input
   echo in > /​sys/​class/​gpio/​gpio233/​direction : gpio direction input   echo in > /​sys/​class/​gpio/​gpio233/​direction : gpio direction input
 +Configure the pin direction for output
   echo out > /​sys/​class/​gpio/​gpio233/​direction : gpio direction output   echo out > /​sys/​class/​gpio/​gpio233/​direction : gpio direction output
 Read a value (if gpio direction is input) Read a value (if gpio direction is input)
en/c1_enhancement_gpio40.txt ยท Last modified: 2016/03/29 10:38 by charles.park
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0