forked from luon/wordclock
Code cleanups.
This commit is contained in:
parent
892c325c84
commit
43235ddd76
|
@ -110,7 +110,7 @@ void selftest(void){
|
|||
|
||||
|
||||
void displaytime(void){
|
||||
|
||||
|
||||
// start by clearing the display to a known state
|
||||
ledsoff();
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@ int count;
|
|||
int selftestmode; // 1 = in self test - flash display
|
||||
int DS1302Present=0; // flag to indicate that the 1302 is there.. 1 = present
|
||||
char Display1=0, Display2=0, Display3=0, Led1=0, Led2=0, Led3=0, Led4=0;
|
||||
int OldHardware = 0; // 1 = we are running on old hardwrae
|
||||
int OldHardware = 0; // 1 = we are running on old hardware
|
||||
int BTNActive = 1; // the sense of the button inputs (Changes based on hardware type)
|
||||
int timercount=10; // used for interrupt counting to determine the brightnes of the display
|
||||
|
||||
|
@ -268,7 +268,6 @@ void setup()
|
|||
ISR(TIMER2_OVF_vect) {
|
||||
RESET_TIMER2;
|
||||
|
||||
|
||||
if (timercount-- <= current_brightnes){
|
||||
// Now we write the actual values to the hardware
|
||||
shiftOut(LEDDataPin, LEDClockPin, MSBFIRST, Display3);
|
||||
|
|
Loading…
Reference in New Issue