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
en:c1_enhancement_gpio40 [2016/03/08 16:29]
charles.park
en:c1_enhancement_gpio40 [2016/03/29 10:38] (current)
charles.park [Enhancement of 40pin GPIO]
Line 1: Line 1:
 ====== Enhancement of 40pin GPIO ====== ====== Enhancement of 40pin GPIO ======
-The **ODROID-XU3** provides ​30Pin GPIOs.+The **ODROID-C1/​ODROID-C1+** provides ​40Pin GPIOs.
  
-{{http://dn.odroid.com/​homebackup/​201310211158488480.jpg}}+**Easy to use GPIOs** \\ 
 +First, you refer to below link\\ 
 +You check Export number that you want to use GPIO\\ 
 +[[en:​c1_hardware&#​expansion_connectors | Pin description]]
  
- +** You need to enter into super-user mode first to run below commands !! **
-** You need to enter into super-user mode first to run below commands !! **\\+
 <​code>​ sudo su </​code>​ <​code>​ sudo su </​code>​
-\\ \\ \\ 
- 
-**Easy to use GPIOs**\\ 
-First, you refer to below link.\\ 
-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 GPIO102(GPIOX.BIT5)
-  echo 29 > /​sys/​class/​gpio/​export +  echo 102 > /​sys/​class/​gpio/​export 
-Configure the pin direction ​(in/out) +Configure the pin direction ​for input 
-  echo in > /​sys/​class/​gpio/​gpio29/​direction +  echo in /sys/​class/​gpio/​gpio102/​direction 
-Read a value +Configure the pin direction for output 
-  cat /​sys/​class/​gpio/​gpio29/value +  echo out > /​sys/​class/​gpio/​gpio102/​direction 
- +Read a value (if gpio direction is input) 
-{{http://dn.odroid.com/homebackup/201310211155385344.jpg}}\\+  cat /​sys/​class/​gpio/​gpio102/value 
 +Write a value (if gpio direction is output) 
 +  echo 1 > /​sys/​class/​gpio/​gpio102/​value ​gpio high 
 +  echo 0 > /sys/class/gpio/gpio102/​value : gpio low
  
 ===== I2C ===== ===== I2C =====
en/c1_enhancement_gpio40.1457423964.txt.gz · Last modified: 2016/03/08 16:29 by charles.park
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0