summaryrefslogtreecommitdiffstats
path: root/etc/inc/led.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/led.inc')
-rw-r--r--etc/inc/led.inc18
1 files changed, 18 insertions, 0 deletions
diff --git a/etc/inc/led.inc b/etc/inc/led.inc
index d684100..ed67db5 100644
--- a/etc/inc/led.inc
+++ b/etc/inc/led.inc
@@ -138,6 +138,15 @@ function led_kitt() {
}
/*
+ * Custom pattern for assigning interfaces
+ */
+function led_assigninterfaces() {
+ led_pattern(1, 'AaaAaaaaaaaaaaaa');
+ led_pattern(2, 'aaaaaAaaAaaaaaaa');
+ led_pattern(3, 'aaaaaaaaaaAaaAaa');
+}
+
+/*
* Return the three LEDs to a standard setup (1=on, 2 and 3 = off)
*/
function led_normalize() {
@@ -147,6 +156,15 @@ function led_normalize() {
}
/*
+ * Shut off ALL LEDs.
+ */
+function led_alloff() {
+ led_off(1);
+ led_off(2);
+ led_off(3);
+}
+
+/*
* Translate a string to morse code. Characters not known to have a
* valid morse code representation will be ignored.
*/
OpenPOWER on IntegriCloud