Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. adb devices (See if Dragonboard is connected)
  2. adb shell (Open shell on Dragonboard)
  3. su (Need super user access)
  4. cd sys/class/gpio (Navigate to GPIO directory)
  5. ==> GPIO pin numbers are offset by 902 (pin 34 => GPIO 935)
  6. echo {GPIO number, eg. 935} > export (Exports GPIO to be accessed and modified)
  7. cd {exported GPIO number directory, eg. gpio935}
  8. ls (Lists commands available for GPIO)
  9.  
  10. cat direction (prints direction (IN or OUT))
  11. cat value (prints value (1 or 0))
  12.  
  13. echo 1 > value (Overwrites value with 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement