Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:common:applications:gpio:40pin-header

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
products:sbc:common:applications:gpio:40pin-header [2023/08/16 06:30]
jacobe [Set-up GPIO direction]
products:sbc:common:applications:gpio:40pin-header [2023/08/16 06:33] (current)
jacobe
Line 14: Line 14:
  
 ```shell ```shell
-$ echo 111 | sudo tee /sys/class/gpio/export+$ echo 465 | sudo tee /sys/class/gpio/export
 ``` ```
  
Line 22: Line 22:
  
 ```shell ```shell
-$ echo out | sudo tee /sys/class/gpio/gpio111/direction # Set GPIO outputĀ +$ echo out | sudo tee /sys/class/gpio/gpio465/direction # Set GPIO outputĀ 
-$ echo in  | sudo tee /sys/class/gpio/gpio111/direction # Set GPIO input+$ echo in  | sudo tee /sys/class/gpio/gpio465/direction # Set GPIO input
 ``` ```
  
Last modified: 2023/08/16 06:30 by jacobe