You've already forked beagleconnect-freedom
mirror of
https://github.com/beagleboard/beagleconnect-freedom.git
synced 2026-07-27 03:42:31 +00:00
8 lines
207 B
Bash
Executable File
8 lines
207 B
Bash
Executable File
#!/bin/bash
|
|
if (( $EUID != 0 )); then
|
|
sudo $0
|
|
exit
|
|
fi
|
|
CHIP=`gpiodetect | grep "greybus_gpio" | awk '{print $1}'`
|
|
VAL=0; for ((;;)); do VAL=$((VAL^1)); echo $VAL | gpioset ${CHIP} 6=${VAL}; sleep 1; done
|