|
@@ -78,7 +78,7 @@ static void check_DayNight(void) {
|
|
LightingColour = Lighting.name.NightColour;
|
|
LightingColour = Lighting.name.NightColour;
|
|
}
|
|
}
|
|
|
|
|
|
- tube_BrightLevel(Tube_All, LightingBright);
|
|
|
|
|
|
+ //tube_BrightLevel(Tube_All, LightingBright);
|
|
TUBES_BRIGHT(LightingBright);
|
|
TUBES_BRIGHT(LightingBright);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -377,6 +377,7 @@ static void HSV2LED(const uint8_t hue, const uint8_t val) {
|
|
* Show info on tubes.
|
|
* Show info on tubes.
|
|
*/
|
|
*/
|
|
void showTime(void) {
|
|
void showTime(void) {
|
|
|
|
+ static tube4_t old_buf;
|
|
uint8_t hue;
|
|
uint8_t hue;
|
|
MinusFadeIn();
|
|
MinusFadeIn();
|
|
RTOS_SetTask(MinusFadeOut, 500, 0);
|
|
RTOS_SetTask(MinusFadeOut, 500, 0);
|
|
@@ -402,7 +403,8 @@ void showTime(void) {
|
|
buf.s8.tD = Clock.Min >> 4;
|
|
buf.s8.tD = Clock.Min >> 4;
|
|
buf.s8.tE = Clock.Min & 0xf;
|
|
buf.s8.tE = Clock.Min & 0xf;
|
|
if (Clock.Min == 0) {
|
|
if (Clock.Min == 0) {
|
|
- slideDigits(buf);
|
|
|
|
|
|
+ lShiftDigits(old_buf, buf);
|
|
|
|
+ old_buf = buf;
|
|
} else {
|
|
} else {
|
|
showDigits(buf);
|
|
showDigits(buf);
|
|
}
|
|
}
|
|
@@ -428,10 +430,10 @@ void showWD(void) {
|
|
IN15_OFF;
|
|
IN15_OFF;
|
|
|
|
|
|
tube4_t buf;
|
|
tube4_t buf;
|
|
- buf.s8.tA = 0xf;
|
|
|
|
|
|
+ buf.s8.tA = TUBE_BLANK;
|
|
buf.s8.tB = Clock.WD & 0xf;
|
|
buf.s8.tB = Clock.WD & 0xf;
|
|
- buf.s8.tD = 0xf;
|
|
|
|
- buf.s8.tE = 0xf;
|
|
|
|
|
|
+ buf.s8.tD = TUBE_BLANK;
|
|
|
|
+ buf.s8.tE = TUBE_BLANK;
|
|
showDigits(buf);
|
|
showDigits(buf);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -468,8 +470,8 @@ void showHumidity(void) {
|
|
tube4_t buf;
|
|
tube4_t buf;
|
|
buf.s8.tA = Humidity / 10;
|
|
buf.s8.tA = Humidity / 10;
|
|
buf.s8.tB = Humidity % 10;
|
|
buf.s8.tB = Humidity % 10;
|
|
- buf.s8.tD = 0xf;
|
|
|
|
- buf.s8.tE = 0xf;
|
|
|
|
|
|
+ buf.s8.tD = TUBE_BLANK;
|
|
|
|
+ buf.s8.tE = TUBE_BLANK;
|
|
showDigits(buf);
|
|
showDigits(buf);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -482,8 +484,8 @@ void showTemperature(void) {
|
|
IN15_FadeIn();
|
|
IN15_FadeIn();
|
|
|
|
|
|
tube4_t buf;
|
|
tube4_t buf;
|
|
- buf.s8.tA = 0xf;
|
|
|
|
- buf.s8.tB = 0xf;
|
|
|
|
|
|
+ buf.s8.tA = TUBE_BLANK;
|
|
|
|
+ buf.s8.tB = TUBE_BLANK;
|
|
buf.s8.tD = Temperature / 10;
|
|
buf.s8.tD = Temperature / 10;
|
|
buf.s8.tE = Temperature % 10;
|
|
buf.s8.tE = Temperature % 10;
|
|
showDigits(buf);
|
|
showDigits(buf);
|
|
@@ -497,7 +499,7 @@ void showPressure(void) {
|
|
|
|
|
|
tube4_t buf;
|
|
tube4_t buf;
|
|
int tmp;
|
|
int tmp;
|
|
- buf.s8.tA = 0xf;
|
|
|
|
|
|
+ buf.s8.tA = TUBE_BLANK;
|
|
buf.s8.tB = Pressure / 100;
|
|
buf.s8.tB = Pressure / 100;
|
|
tmp = Pressure % 100;
|
|
tmp = Pressure % 100;
|
|
buf.s8.tD = tmp / 10;
|
|
buf.s8.tD = tmp / 10;
|
|
@@ -618,10 +620,10 @@ void setWDShow(void) {
|
|
dispWDT = DISP_WDT_TIME;
|
|
dispWDT = DISP_WDT_TIME;
|
|
|
|
|
|
tube4_t buf;
|
|
tube4_t buf;
|
|
- buf.s8.tA = 0xf;
|
|
|
|
|
|
+ buf.s8.tA = TUBE_BLANK;
|
|
buf.s8.tB = setClock.WD & 0xf;
|
|
buf.s8.tB = setClock.WD & 0xf;
|
|
- buf.s8.tD = 0xf;
|
|
|
|
- buf.s8.tE = 0xf;
|
|
|
|
|
|
+ buf.s8.tD = TUBE_BLANK;
|
|
|
|
+ buf.s8.tE = TUBE_BLANK;
|
|
showDigits(buf);
|
|
showDigits(buf);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -761,9 +763,9 @@ void showDNmode(void) {
|
|
nm = setLighting.name.NightMode;
|
|
nm = setLighting.name.NightMode;
|
|
}
|
|
}
|
|
|
|
|
|
- buf.s8.tA = 0xf;
|
|
|
|
|
|
+ buf.s8.tA = TUBE_BLANK;
|
|
buf.s8.tB = dm & 0xf;
|
|
buf.s8.tB = dm & 0xf;
|
|
- buf.s8.tD = 0xf;
|
|
|
|
|
|
+ buf.s8.tD = TUBE_BLANK;
|
|
buf.s8.tE = nm & 0xf;
|
|
buf.s8.tE = nm & 0xf;
|
|
showDigits(buf);
|
|
showDigits(buf);
|
|
}
|
|
}
|
|
@@ -886,7 +888,8 @@ void setIncDayHour(void) {
|
|
|
|
|
|
void setIncDayBright(void) {
|
|
void setIncDayBright(void) {
|
|
dvalIncrease(&setLighting.name.DayBright, MAX_BRIGHT_LVL);
|
|
dvalIncrease(&setLighting.name.DayBright, MAX_BRIGHT_LVL);
|
|
- tube_BrightLevel(Tube_All, setLighting.name.DayBright);
|
|
|
|
|
|
+ //tube_BrightLevel(Tube_All, setLighting.name.DayBright);
|
|
|
|
+ TUBES_BRIGHT(setLighting.name.DayBright);
|
|
}
|
|
}
|
|
|
|
|
|
void setIncDayMode(void) {
|
|
void setIncDayMode(void) {
|
|
@@ -909,7 +912,8 @@ void setDecDayHour(void) {
|
|
|
|
|
|
void setDecDayBright(void) {
|
|
void setDecDayBright(void) {
|
|
dvalDecrease(&setLighting.name.DayBright, MAX_BRIGHT_LVL);
|
|
dvalDecrease(&setLighting.name.DayBright, MAX_BRIGHT_LVL);
|
|
- tube_BrightLevel(Tube_All, setLighting.name.DayBright);
|
|
|
|
|
|
+ //tube_BrightLevel(Tube_All, setLighting.name.DayBright);
|
|
|
|
+ TUBES_BRIGHT(setLighting.name.DayBright);
|
|
}
|
|
}
|
|
|
|
|
|
void setDecDayMode(void) {
|
|
void setDecDayMode(void) {
|
|
@@ -932,7 +936,8 @@ void setIncNightHour(void) {
|
|
|
|
|
|
void setIncNightBright(void) {
|
|
void setIncNightBright(void) {
|
|
dvalIncrease(&setLighting.name.NightBright, MAX_BRIGHT_LVL);
|
|
dvalIncrease(&setLighting.name.NightBright, MAX_BRIGHT_LVL);
|
|
- tube_BrightLevel(Tube_All, setLighting.name.NightBright);
|
|
|
|
|
|
+ //tube_BrightLevel(Tube_All, setLighting.name.NightBright);
|
|
|
|
+ TUBES_BRIGHT(setLighting.name.NightBright);
|
|
}
|
|
}
|
|
|
|
|
|
void setIncNightMode(void) {
|
|
void setIncNightMode(void) {
|
|
@@ -955,7 +960,8 @@ void setDecNightHour(void) {
|
|
|
|
|
|
void setDecNightBright(void) {
|
|
void setDecNightBright(void) {
|
|
dvalDecrease(&setLighting.name.NightBright, MAX_BRIGHT_LVL);
|
|
dvalDecrease(&setLighting.name.NightBright, MAX_BRIGHT_LVL);
|
|
- tube_BrightLevel(Tube_All, setLighting.name.NightBright);
|
|
|
|
|
|
+ //tube_BrightLevel(Tube_All, setLighting.name.NightBright);
|
|
|
|
+ TUBES_BRIGHT(setLighting.name.NightBright);
|
|
}
|
|
}
|
|
|
|
|
|
void setDecNightMode(void) {
|
|
void setDecNightMode(void) {
|