Skip to content

Instantly share code, notes, and snippets.

@mims92
Last active January 7, 2018 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mims92/a5d0c003ba620740bb67885769adeed6 to your computer and use it in GitHub Desktop.
Save mims92/a5d0c003ba620740bb67885769adeed6 to your computer and use it in GitHub Desktop.
Odroid XU4 - Bash - Turns the blue LED off/on
# $ led [on|off]
#!/bin/bash
led_path=/sys/class/leds/blue\:heartbeart/trigger
if [ "$1" == "off" ]
then
echo none > ${led_path}
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment