Skip to content

Instantly share code, notes, and snippets.

@BenDLH
Created October 22, 2016 18:06
Show Gist options
  • Save BenDLH/2a2904db1e3eae376a308ce5b1678ee5 to your computer and use it in GitHub Desktop.
Save BenDLH/2a2904db1e3eae376a308ce5b1678ee5 to your computer and use it in GitHub Desktop.
Connect to Dragonboard 410c GPIO's via adb
adb devices (See if Dragonboard is connected)
adb shell (Open shell on Dragonboard)
su (Need super user access)
cd sys/class/gpio (Navigate to GPIO directory)
==> GPIO pin numbers are offset by 902 (pin 34 => GPIO 935)
echo {GPIO number, eg. 935} > export (Exports GPIO to be accessed and modified)
cd {exported GPIO number directory, eg. gpio935}
ls (Lists commands available for GPIO)
cat direction (prints direction (IN or OUT))
cat value (prints value (1 or 0))
echo 1 > value (Overwrites value with 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment