|
@@ -377,12 +377,13 @@ static void HSV2LED(const uint8_t hue, const uint8_t val) {
|
|
|
* Show info on tubes.
|
|
|
*/
|
|
|
void showTime(void) {
|
|
|
+ uint8_t hue;
|
|
|
MinusFadeIn();
|
|
|
RTOS_SetTask(MinusFadeOut, 500, 0);
|
|
|
|
|
|
switch (LightingMode) {
|
|
|
case light_Rainbow:
|
|
|
- uint8_t hue = bcd2bin(Clock.Sec);
|
|
|
+ hue = bcd2bin(Clock.Sec);
|
|
|
HSV2LED(hue, LightingBright);
|
|
|
break;
|
|
|
|
|
@@ -400,7 +401,11 @@ void showTime(void) {
|
|
|
buf.s8.tB = Clock.Hr & 0xf;
|
|
|
buf.s8.tD = Clock.Min >> 4;
|
|
|
buf.s8.tE = Clock.Min & 0xf;
|
|
|
- showDigits(buf);
|
|
|
+ if (Clock.Min == 0) {
|
|
|
+ slideDigits(buf);
|
|
|
+ } else {
|
|
|
+ showDigits(buf);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
void showMMSS(void) {
|