Hardware Reference
In-Depth Information
bone# cd /sys/class/gpio/
bone# echo 50 > export
bone# ls
gpio50 gpiochip0 gpiochip32 gpiochip64 gpiochip96
bone# cd gpio50
bone# ls
active_low direction edge power subsystem uevent value
bone# cat direction
in
By default, P9_14 is set as an input. Switch it to an output and turn it on:
bone# echo out > direction
bone# echo 1 > value
bone# echo 0 > value
The LED turns on when a 1 is written to value and turns off when a 0 is written.
Search WWH ::




Custom Search