56,8 → 56,8 |
"A", // LED #2 |
"A", // LED #3 blau |
"A", // LED #4 |
"A:aIA:aIA:aSV", // LED #5 weiss |
"NA:aIA:aIA:aMS", // LED #6 grün |
"A;aIA;aIA;aSV", // LED #5 weiss |
"NA;aIA;aIA;aMS", // LED #6 grün |
"A", // LED #7 |
"A", // LED #8 weiss |
"A", // LED #9 |
121,16 → 121,16 |
|
// alle LEDs toggeln mit verschiednen Zykluszeiten |
char *led_flash2[] = { |
"a.A.", // LED #1 rot |
"a:A:", // LED #2 blau |
"a;A;", // LED #3 blau |
"aIAI", // LED #4 |
"aNAN", // LED #5 weiss |
"aMAM", // LED #6 grün |
"aMIAMI", // LED #7 |
"aVAV", // LED #8 weiss |
"aVIAVI", // LED #9 |
"aSAS" // LED #10 |
"ASIIaIAIaIaV", // LED #1 |
"ASIIaIAIaIaV", // LED #2 |
"aSIIIAIaIIIIAIaI", // LED #3 |
"aSIIIAIaIIIAIaII", // LED #4 |
"aSIIIAIaIIAIaIII", // LED #5 |
"aVSIAIaIII", // LED #6 |
"aSIIIAIaIIIAIaII", // LED #7 |
"aSIIIAIaIIIIAIaI", // LED #8 |
"aSIIIAIaI IIII AI", // LED #9 |
"aSIIIAIaI IIII AI" // LED #10 |
}; |
|
|
138,7 → 138,7 |
|
int current = 0; |
|
void *modes[]= { led_posflash, led_posflash1, led_an, led_flash1,led_aus, led_flash2 }; |
void *modes[]= { led_an, led_aus, led_posflash, led_flash2 }; |
|
void nextMode(void) { |
|
158,7 → 158,7 |
int main(void) { |
|
int tim1s, tim3s, tim10s, analog_state=0; |
int Vcurr; |
int Vcurr, lowVwarn_on = 0; |
|
SFIOR = 0x00; // Analog Comperator aus |
ADCSRA = 0xD3; // Converter ein, single |
192,7 → 192,7 |
Timer_Init(); |
|
lprg_init(modes[current]); |
tim10s = SetDelay(10000); |
tim10s = SetDelay(20000); |
tim3s = SetDelay(3000); |
tim1s = SetDelay(1000); |
|
223,9 → 223,11 |
} |
if(Vcurr < 180) { |
lprg_init(led_lowVolt); |
lowVwarn_on = 1; |
} |
if(Vcurr>=180) { |
if(lowVwarn_on && Vcurr>=180) { |
lprg_init(modes[current]); |
lowVwarn_on = 0; |
} |
STATUS_TOGGLE; |
tim1s = SetDelay(1000); |