mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2024-10-01 03:15:40 -04:00
RGB LED indications for RNode NG
This commit is contained in:
parent
8307b3c0d1
commit
e8b137e941
2
Config.h
2
Config.h
@ -4,7 +4,7 @@
|
|||||||
#define CONFIG_H
|
#define CONFIG_H
|
||||||
|
|
||||||
#define MAJ_VERS 0x01
|
#define MAJ_VERS 0x01
|
||||||
#define MIN_VERS 0x1C
|
#define MIN_VERS 0x1D
|
||||||
|
|
||||||
#define PLATFORM_AVR 0x90
|
#define PLATFORM_AVR 0x90
|
||||||
#define PLATFORM_ESP32 0x80
|
#define PLATFORM_ESP32 0x80
|
||||||
|
@ -122,6 +122,7 @@ void led_indicate_error(int cycles) {
|
|||||||
delay(100);
|
delay(100);
|
||||||
npset(0xFF, 0x50, 0x00);
|
npset(0xFF, 0x50, 0x00);
|
||||||
delay(100);
|
delay(100);
|
||||||
|
if (!forever) cycles--;
|
||||||
}
|
}
|
||||||
npset(0,0,0);
|
npset(0,0,0);
|
||||||
#else
|
#else
|
||||||
@ -169,6 +170,7 @@ void led_indicate_warning(int cycles) {
|
|||||||
delay(100);
|
delay(100);
|
||||||
npset(0x00, 0x00, 0x00);
|
npset(0x00, 0x00, 0x00);
|
||||||
delay(100);
|
delay(100);
|
||||||
|
if (!forever) cycles--;
|
||||||
}
|
}
|
||||||
npset(0,0,0);
|
npset(0,0,0);
|
||||||
#else
|
#else
|
||||||
@ -210,6 +212,7 @@ void led_indicate_warning(int cycles) {
|
|||||||
delay(100);
|
delay(100);
|
||||||
npset(0x00, 0x00, 0x00);
|
npset(0x00, 0x00, 0x00);
|
||||||
delay(100);
|
delay(100);
|
||||||
|
if (!forever) cycles--;
|
||||||
}
|
}
|
||||||
npset(0,0,0);
|
npset(0,0,0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user