CCR BeagleBone Tools  v0.0.1-2206
Production Tools for BeagleBone Devices
 All Pages
CCR LEDs
See Also
BeagleBone Tools

CCR_LEDs turns the LEDs on, off, or displays patterns.

Key Description
available since 2017-01
package filename ccr_leds-xyz.deb
configuration none
cron job /etc/cron.d/ccr_leds
script /usr/bin/ccr_leds.sh <see below>
example ccr_leds.sh sweep

To install:

sudo dpkg -i ccr_leds-*.deb

Then call ccr_leds.sh to turn lights on or off. For example:

ccr_leds.sh on 0 1 off 2 3
ccr_leds.sh sweep
ccr_leds.sh auto

There are several possible parameters to the ccr_leds.sh script:

Parameter Example Description
permissions ccr_leds.sh permissions Set write permissions on LEDs. This is automatically called by the cron job on boot.
on ccr_leds.sh on 2 3 Turn the given lights on.
off ccr_leds.sh off 0 1 3 Turn the given lights off.
dark/none ccr_leds.sh none Turn all the lights off.
bright/all ccr_leds.sh all Turn all the lights on.
auto ccr_leds.sh auto Set all 4 LEDs back to their automatic settings.
0/1/2/3 ccr_leds.sh on 0 3 LEDs 0 through 3.
blink ccr_leds.sh blink Blinks all lights on and off.
alternate ccr_leds.sh alternate Alternate lights, 0 & 2, then 1 & 3.
sweep ccr_leds.sh sweep Typical sweep pattern.
random ccr_leds.sh random Randomly turn lights on and off.
See Also
/sys/devices/platform/leds/leds/beaglebone:green:usr{0-3}/