aboutsummaryrefslogtreecommitdiff
path: root/rootfs/bin/helloled
blob: 877faab10b109bc61a0effe4d48be2309c8d7809 (plain)
1
2
3
4
5
6
7
8
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