aboutsummaryrefslogtreecommitdiff
path: root/rootfs/bin/helloled
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-02-07 14:06:30 +0100
committerlonkaars <loek@pipeframe.xyz>2024-02-07 14:06:30 +0100
commit612a0afa63144aae338a51c9206a589d4b8fdd65 (patch)
tree679e6676d9ce4b56996874bd5782764da221280a /rootfs/bin/helloled
parent70623600744cab314baf1ccc912134456ffe565d (diff)
WIP web server
Diffstat (limited to 'rootfs/bin/helloled')
-rwxr-xr-xrootfs/bin/helloled4
1 files changed, 1 insertions, 3 deletions
diff --git a/rootfs/bin/helloled b/rootfs/bin/helloled
index 877faab..1426a7c 100755
--- a/rootfs/bin/helloled
+++ b/rootfs/bin/helloled
@@ -2,8 +2,6 @@
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
+ leds $BRIGHTNESS
sleep 0.5
done