|
@@ -24,6 +24,7 @@ const uint8_t cie[MAX_BRIGHT_LVL + 1] = {
|
|
|
0, 2, 4, 8, 13, 20, 29, 40, 54, 72, 92, 116, 145, 177, 214, 255
|
|
|
};
|
|
|
volatile static uint8_t dispWDT = 0;
|
|
|
+volatile in15_pin_t SymbolIN15 = sym_None;
|
|
|
static in15_pin_t symToFade = 0;
|
|
|
static uint8_t LightingBright;
|
|
|
static light_mode_t LightingMode;
|
|
@@ -140,32 +141,37 @@ void new_Second(void) {
|
|
|
* On/off symbols on IN-15 tube.
|
|
|
*/
|
|
|
void in15Off(void) {
|
|
|
- IN15_OFF;
|
|
|
- TUBE_C_OFF;
|
|
|
+ //IN15_OFF;
|
|
|
+ //TUBE_C_OFF;
|
|
|
+ SymbolIN15 = sym_Off;
|
|
|
}
|
|
|
|
|
|
void in15Minus(void) {
|
|
|
- IN15_OFF;
|
|
|
- IN15_Minus;
|
|
|
- TUBE_C_ON;
|
|
|
+ //IN15_OFF;
|
|
|
+ //IN15_Minus;
|
|
|
+ //TUBE_C_ON;
|
|
|
+ SymbolIN15 = sym_Minus;
|
|
|
}
|
|
|
|
|
|
void in15Plus(void) {
|
|
|
- IN15_OFF;
|
|
|
- IN15_Plus;
|
|
|
- TUBE_C_ON;
|
|
|
+ //IN15_OFF;
|
|
|
+ //IN15_Plus;
|
|
|
+ //TUBE_C_ON;
|
|
|
+ SymbolIN15 = sym_Plus;
|
|
|
}
|
|
|
|
|
|
void in15Percent(void) {
|
|
|
- IN15_OFF;
|
|
|
- IN15_Percent;
|
|
|
- TUBE_C_ON;
|
|
|
+ //IN15_OFF;
|
|
|
+ //IN15_Percent;
|
|
|
+ //TUBE_C_ON;
|
|
|
+ SymbolIN15 = sym_Percent;
|
|
|
}
|
|
|
|
|
|
void in15P(void) {
|
|
|
- IN15_OFF;
|
|
|
- IN15_P;
|
|
|
- TUBE_C_ON;
|
|
|
+ //IN15_OFF;
|
|
|
+ //IN15_P;
|
|
|
+ //TUBE_C_ON;
|
|
|
+ SymbolIN15 = sym_Pressure;
|
|
|
}
|
|
|
|
|
|
/** 'Faded' funcions */
|
|
@@ -378,8 +384,9 @@ static void HSV2LED(const uint8_t hue, const uint8_t val) {
|
|
|
*/
|
|
|
void showTime(void) {
|
|
|
uint8_t hue;
|
|
|
- MinusFadeIn();
|
|
|
- RTOS_SetTask(MinusFadeOut, 500, 0);
|
|
|
+ //MinusFadeIn();
|
|
|
+ in15Minus();
|
|
|
+ RTOS_SetTask(in15Off, 500, 0); // MinusFadeOut
|
|
|
|
|
|
switch (LightingMode) {
|
|
|
case light_Rainbow:
|