# HG changeset patch # User Christophe Lincoln # Date 1399176037 -7200 # Node ID e90abb253448d331d4434eb63471f089aa43c7f3 # Parent 30194ae0cd16531c8fda65cebcc5345848ea5243 Add a clean command to pileds diff -r 30194ae0cd16 -r e90abb253448 rpi/pileds --- a/rpi/pileds Sun May 04 05:35:01 2014 +0200 +++ b/rpi/pileds Sun May 04 06:00:37 2014 +0200 @@ -14,9 +14,12 @@ $(boldify "Types:") act Turn on/off the on board ACT green led 7-clock Adafruit 7-segment LED Backpack clock example - #8x8 Adafruit 8x8 LED Matrix Backpack example - + ada-clean Clean: Adafruit 7-segment or 8x8 Matrix + +$(boldify "Types:") + EOT +#8x8 Adafruit 8x8 LED Matrix Backpack example } load_modules() { @@ -31,6 +34,10 @@ done } +adafruit_clean() { + python /usr/lib/python2.7/Adafruit_LEDBackpack.py +} + case "$1" in act) ;; @@ -41,7 +48,6 @@ check_packages "python-rpi-adafruit" if [ -f "${scripts}/ex_7segment_clock.py" ]; then python ${scripts}/ex_7segment_clock.py - python /usr/lib/python2.7/Adafruit_LEDBackpack.py else echo "Missing: ${scripts}/ex_7segment_clock.py" fi ;; @@ -51,6 +57,9 @@ #load_modules #check_packages "python-rpi-adafruit" echo "TODO: $scripts" ;; + + ada-clean) + ada_clean ;; *) usage ;;