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
Previous revision
Last revision Both sides next revision
en:c1_enhancement_gpio40 [2016/03/08 16:34]
charles.park
en:c1_enhancement_gpio40 [2016/03/29 10:23]
odroid
Line 2: Line 2:
 The **ODROID-C2** provides 40Pin GPIOs. The **ODROID-C2** provides 40Pin GPIOs.
  
-** You need to enter into super-user mode first to run below commands !! **\\ +**Easy to use GPIOs** \\ 
-<​code>​ sudo su </​code>​ +First, you refer to below link. \\ 
-\\ \\ \\+You check Export number that you want to use GPIO. \\ 
 +[[en:​c2_hardware&#​expansion_connectors | Pin description]]
  
-**Easy to use GPIOs**\\ +** You need to enter into super-user mode first to run below commands !! ** 
-First, you refer to below link.\\ +<​code>​ sudo su </​code>​
-You check Export number that you want to use GPIO.\\ +
-[[en:​xu3_hardware&#​expansion_connectors | Pin description]]+
  
 Create a GPIO file access.\\ Create a GPIO file access.\\
-You can access GPIOs using sysfs interface.+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/​gpio29/​direction ​: gpio direction ​input +  echo in > /​sys/​class/​gpio/​gpio233/direction 
-  echo out > /​sys/​class/​gpio/​gpio29/​direction ​: gpio direction output+Configure the pin direction ​for output 
 +  echo out > /​sys/​class/​gpio/​gpio233/direction
 Read a value (if gpio direction is input) Read a value (if gpio direction is input)
   cat /​sys/​class/​gpio/​gpio233/​value   cat /​sys/​class/​gpio/​gpio233/​value
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