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
Last revision Both sides next revision
en:acc:vu8 [2017/01/19 14:18]
joy.cho [3. Backlight control with PWM.]
en:acc:vu8 [2017/04/04 10:33]
codewalker [2. Backlight ON/OFF.]
Line 64: Line 64:
 <​code>​ <​code>​
 path="/​sys/​class/​gpio"​ path="/​sys/​class/​gpio"​
-echo 234 > $path/​export 
 echo 214 > $path/​export echo 214 > $path/​export
-echo out > $path/​gpio234/​direction 
 echo out > $path/​gpio214/​direction echo out > $path/​gpio214/​direction
-echo 0 > $path/​gpio234/​value 
 echo 0 > $path/​gpio214/​value echo 0 > $path/​gpio214/​value
 </​code>​ </​code>​
Line 75: Line 72:
 path="/​sys/​class/​gpio"​ path="/​sys/​class/​gpio"​
 echo 97 > $path/​export echo 97 > $path/​export
-echo 108 > $path/​export 
 echo out > $path/​gpio97/​direction echo out > $path/​gpio97/​direction
-echo out > $path/​gpio108/​direction 
 echo 0 > $path/​gpio97/​value echo 0 > $path/​gpio97/​value
-echo 0 > $path/​gpio108/​value 
 </​code>​ </​code>​
  
Line 105: Line 99:
 path="/​sys/​class/​gpio"​ path="/​sys/​class/​gpio"​
    
-echo 234 > $path/​export 
 echo 214 > $path/​export echo 214 > $path/​export
    
-echo out > $path/​gpio234/​direction 
 echo out > $path/​gpio214/​direction echo out > $path/​gpio214/​direction
-echo 0 > $path/​gpio234/​value 
 echo 0 > $path/​gpio214/​value echo 0 > $path/​gpio214/​value
    
-chown system system $path/​gpio234/​value 
 chown system system $path/​gpio214/​value chown system system $path/​gpio214/​value
 </​file>​ </​file>​
Line 136: Line 126:
 $ reboot $ reboot
 </​code>​ </​code>​
-After reboot, you can confirm if the nodes are configured normally by checking "​gpio214" and "​gpio234".+After reboot, you can confirm if the nodes are configured normally by checking "​gpio214"​.
 <​code>​ <​code>​
 $ ls /​sys/​class/​gpio/​ $ ls /​sys/​class/​gpio/​
 export export
 gpio214 gpio214
-gpio234 
 gpiochip122 gpiochip122
 gpiochip136 gpiochip136
Line 154: Line 143:
    
 echo 97 > $path/​export echo 97 > $path/​export
-echo 108 > $path/​export 
    
 echo out > $path/​gpio97/​direction echo out > $path/​gpio97/​direction
-echo out > $path/​gpio108/​direction 
 echo 0 > $path/​gpio97/​value echo 0 > $path/​gpio97/​value
-echo 0 > $path/​gpio108/​value 
    
 chown system system $path/​gpio97/​value chown system system $path/​gpio97/​value
-chown system system $path/​gpio108/​value 
 </​file>​ </​file>​
 Now, you need to register the service to run this script automatically on boot time.\\ Now, you need to register the service to run this script automatically on boot time.\\
Line 183: Line 168:
 $ reboot $ reboot
 </​code>​ </​code>​
-After reboot, you can confirm if the nodes are configured normally by checking "​gpio97" and "​gpio108".+After reboot, you can confirm if the nodes are configured normally by checking "​gpio97"​.
 <​code>​ <​code>​
 $ ls /​sys/​class/​gpio/​ $ ls /​sys/​class/​gpio/​
 export export
 gpio97 gpio97
-gpio108 
 ...... ......
 ...... ......
en/acc/vu8.txt ยท Last modified: 2017/05/22 09:09 by odroid
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0