diff options
Diffstat (limited to 'rootfs/bin')
-rwxr-xr-x | rootfs/bin/helloled | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rootfs/bin/helloled b/rootfs/bin/helloled new file mode 100755 index 0000000..877faab --- /dev/null +++ b/rootfs/bin/helloled @@ -0,0 +1,9 @@ +#!/bin/sh +BRIGHTNESS=0 +while true ; do + BRIGHTNESS=$(( ( $BRIGHTNESS + 1 ) % 2 )) + for i in $(seq 0 3) ; do + echo $BRIGHTNESS > "/sys/class/leds/beaglebone:green:usr$i/brightness" + done + sleep 0.5 +done |