|
@@ -439,26 +439,28 @@ void showSensorData(void) {
|
|
|
}
|
|
|
|
|
|
void setTimeShow(void) {
|
|
|
- MinusFadeIn();
|
|
|
- RTOS_SetTask(MinusFadeOut, 500, 0);
|
|
|
+ dispWDT = DISP_WDT_TIME;
|
|
|
|
|
|
- uint8_t hue = bcd2bin(Clock.Sec);
|
|
|
- HSV2LED(hue, 255, cie[Lvl_Mdl]);
|
|
|
+ in15Minus();
|
|
|
+
|
|
|
+ HSV2LED(1, 255, cie[Lvl_2]);
|
|
|
|
|
|
tube4_t buf;
|
|
|
- buf.s8.tA = Clock.Hr >> 4;
|
|
|
- buf.s8.tB = Clock.Hr & 0xf;
|
|
|
- buf.s8.tD = Clock.Min >> 4;
|
|
|
- buf.s8.tE = Clock.Min & 0xf;
|
|
|
+ buf.s8.tA = setClock.Hr >> 4;
|
|
|
+ buf.s8.tB = setClock.Hr & 0xf;
|
|
|
+ buf.s8.tD = setClock.Min >> 4;
|
|
|
+ buf.s8.tE = setClock.Min & 0xf;
|
|
|
showDigits(buf);
|
|
|
}
|
|
|
|
|
|
void setTimeBegin(void) {
|
|
|
+ dispWDT = DISP_WDT_TIME;
|
|
|
RTOS_SetTask(btnProcess, BTN_TIME_HOLDED, BTN_SCAN_PERIOD);
|
|
|
RTC_ReadAll(&setClock);
|
|
|
}
|
|
|
|
|
|
void setHHBegin(void) {
|
|
|
+ dispWDT = DISP_WDT_TIME;
|
|
|
Flag.Blink_1 = 1;
|
|
|
Flag.Blink_2 = 1;
|
|
|
Flag.Blink_4 = 0;
|
|
@@ -468,14 +470,17 @@ void setHHBegin(void) {
|
|
|
}
|
|
|
|
|
|
void setHHInc(void) {
|
|
|
+ dispWDT = DISP_WDT_TIME;
|
|
|
valIncrease(&setClock.Hr, 23);
|
|
|
}
|
|
|
|
|
|
void setHHDec(void) {
|
|
|
+ dispWDT = DISP_WDT_TIME;
|
|
|
valDecrease(&setClock.Hr, 23);
|
|
|
}
|
|
|
|
|
|
void setMMBegin(void) {
|
|
|
+ dispWDT = DISP_WDT_TIME;
|
|
|
Flag.Blink_1 = 0;
|
|
|
Flag.Blink_2 = 0;
|
|
|
Flag.Blink_4 = 1;
|
|
@@ -485,10 +490,12 @@ void setMMBegin(void) {
|
|
|
}
|
|
|
|
|
|
void setMMInc(void) {
|
|
|
+ dispWDT = DISP_WDT_TIME;
|
|
|
valIncrease(&setClock.Min, 59);
|
|
|
}
|
|
|
|
|
|
void setMMDec(void) {
|
|
|
+ dispWDT = DISP_WDT_TIME;
|
|
|
valDecrease(&setClock.Min, 59);
|
|
|
}
|
|
|
|