mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-05-06 16:45:01 -04:00
RGB LED indications for RNode NG
This commit is contained in:
parent
8307b3c0d1
commit
e8b137e941
2 changed files with 9 additions and 6 deletions
13
Utilities.h
13
Utilities.h
|
@ -122,6 +122,7 @@ void led_indicate_error(int cycles) {
|
|||
delay(100);
|
||||
npset(0xFF, 0x50, 0x00);
|
||||
delay(100);
|
||||
if (!forever) cycles--;
|
||||
}
|
||||
npset(0,0,0);
|
||||
#else
|
||||
|
@ -169,6 +170,7 @@ void led_indicate_warning(int cycles) {
|
|||
delay(100);
|
||||
npset(0x00, 0x00, 0x00);
|
||||
delay(100);
|
||||
if (!forever) cycles--;
|
||||
}
|
||||
npset(0,0,0);
|
||||
#else
|
||||
|
@ -176,11 +178,11 @@ void led_indicate_warning(int cycles) {
|
|||
cycles = forever ? 1 : cycles;
|
||||
digitalWrite(pin_led_tx, HIGH);
|
||||
while(cycles > 0) {
|
||||
led_tx_off();
|
||||
delay(100);
|
||||
led_tx_on();
|
||||
delay(100);
|
||||
if (!forever) cycles--;
|
||||
led_tx_off();
|
||||
delay(100);
|
||||
led_tx_on();
|
||||
delay(100);
|
||||
if (!forever) cycles--;
|
||||
}
|
||||
led_tx_off();
|
||||
#endif
|
||||
|
@ -210,6 +212,7 @@ void led_indicate_warning(int cycles) {
|
|||
delay(100);
|
||||
npset(0x00, 0x00, 0x00);
|
||||
delay(100);
|
||||
if (!forever) cycles--;
|
||||
}
|
||||
npset(0,0,0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue