Skip to content

Instantly share code, notes, and snippets.

@linuxsocist
Last active July 29, 2017 23:08
Show Gist options
  • Save linuxsocist/40b95d9255793872a47a6d9fa657a8ac to your computer and use it in GitHub Desktop.
Save linuxsocist/40b95d9255793872a47a6d9fa657a8ac to your computer and use it in GitHub Desktop.
#!/bin/bash
# Blinks the white led on and off every half second the CHIP & PocketCHIP
# To run type 'sudo ./chip-blinky.sh'.
LED='/sys/class/leds/chip:white:status'
while [ true ]; do
echo default-on > $LED/trigger
sleep 0.5
echo none > $LED/trigger
sleep 0.5
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment