|
@@ -64,13 +64,7 @@
|
|
|
#define FULL_BRIGHT_ON 0x06
|
|
|
#define FULL_BRIGHT_OFF 0x22
|
|
|
static const uint8_t PROGMEM brightConv[BRIGHT_IDX_MAX+1] = {
|
|
|
-#if F_CPU == 16000000
|
|
|
- /* 155, 164, 181, 211, 255 */
|
|
|
- /* for 83: */
|
|
|
- 117, 151, 185, 219, 255
|
|
|
-#elif F_CPU == 8000000
|
|
|
- 54, 71, 106, 165, 255
|
|
|
-#endif // F_CPU
|
|
|
+ 88, 102, 131, 180, 255
|
|
|
};
|
|
|
#endif // USE_BRIGHT_CONTROL
|
|
|
|
|
@@ -139,9 +133,9 @@ void main(void) {
|
|
|
|
|
|
/* Initialize Scheduler */
|
|
|
RTOS_Init();
|
|
|
- tdelay_ms(2000);
|
|
|
|
|
|
#ifdef LAMP_TEST
|
|
|
+ tdelay_ms(2000);
|
|
|
lampTest();
|
|
|
tdelay_ms(5000);
|
|
|
#endif // LAMP_TEST
|
|
@@ -360,8 +354,6 @@ static void tubeRefresh(void) {
|
|
|
case 1:
|
|
|
cnt = 2;
|
|
|
Digit[0] = 3;
|
|
|
- /* Digit[2] = 6;
|
|
|
- Digit[4] = 6; */
|
|
|
break;
|
|
|
|
|
|
case 2:
|
|
@@ -374,8 +366,6 @@ static void tubeRefresh(void) {
|
|
|
case 3:
|
|
|
cnt = 4;
|
|
|
Digit[0] = 5;
|
|
|
- /* Digit[2] = 7;
|
|
|
- Digit[4] = 7; */
|
|
|
break;
|
|
|
|
|
|
case 4:
|
|
@@ -388,8 +378,6 @@ static void tubeRefresh(void) {
|
|
|
case 5:
|
|
|
cnt = 6;
|
|
|
Digit[0] = 7;
|
|
|
- /* Digit[2] = 8;
|
|
|
- Digit[4] = 8; */
|
|
|
break;
|
|
|
|
|
|
case 6:
|
|
@@ -400,11 +388,8 @@ static void tubeRefresh(void) {
|
|
|
break;
|
|
|
|
|
|
case 7:
|
|
|
- /* cnt = 8; */
|
|
|
cnt = 0;
|
|
|
Digit[0] = 9;
|
|
|
- /* Digit[2] = 9;
|
|
|
- Digit[4] = 9; */
|
|
|
break;
|
|
|
|
|
|
default:
|
|
@@ -412,22 +397,11 @@ static void tubeRefresh(void) {
|
|
|
}
|
|
|
|
|
|
if (cnt == 0) {
|
|
|
- /* Digit[0] = RTC.Hr >> 4;
|
|
|
- Digit[2] = RTC.Min >> 4;
|
|
|
- Digit[4] = RTC.Sec >> 4; */
|
|
|
RTOS_DeleteTask(tubeRefresh);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
void showTime(void) {
|
|
|
-/*
|
|
|
- Digit[0] = DIGIT_BLANK;
|
|
|
- Digit[1] = DIGIT_BLANK;
|
|
|
- Digit[2] = DIGIT_BLANK;
|
|
|
- Digit[3] = resultADC / 100;
|
|
|
- Digit[4] = (resultADC % 100) / 10;
|
|
|
- Digit[5] = resultADC % 10;
|
|
|
-*/
|
|
|
dotOn();
|
|
|
RTOS_SetTask(dotOff, 500, 0);
|
|
|
|