some very old changes, resurrected from the old CVS, almost forgotten
This commit is contained in:
@ -245,7 +245,7 @@ void timerInterrupt(void) {
|
||||
if (!(PINC & (1 << PINC2))) {
|
||||
// key pressed
|
||||
keycounter++;
|
||||
if (keycounter > 4) {
|
||||
if (keycounter > 2) {
|
||||
// after 4 cycles with pressed key, switch to the next mode
|
||||
keycounter = 0;
|
||||
mode++;
|
||||
@ -289,13 +289,13 @@ void timerInterrupt(void) {
|
||||
// set the current date and time to a fixed value to demonstrate
|
||||
// how the time is displayed
|
||||
datetime.is_valid = 1;
|
||||
datetime.time.hour = 10;
|
||||
datetime.time.minute = 35;
|
||||
datetime.time.second = 10;
|
||||
datetime.date.dayofmonth = 30;
|
||||
datetime.time.hour = 23;
|
||||
datetime.time.minute = 49;
|
||||
datetime.time.second = 57;
|
||||
datetime.date.dayofmonth = 31;
|
||||
datetime.date.month = 12;
|
||||
datetime.date.year = 6;
|
||||
datetime.date.dayofweek = 6;
|
||||
datetime.date.dayofweek = 7;
|
||||
} else {
|
||||
datetime = dcf_current_datetime();
|
||||
}
|
||||
|
Reference in New Issue
Block a user