swarner1033 / Alarm-clock

An alarm clock that opens my blinds
0 stars 0 forks source link

Program time interrupts #2

Open swarner1033 opened 3 years ago

swarner1033 commented 3 years ago

Internal clock functionality. Turn on light at a specific time which is set programmatically

swarner1033 commented 3 years ago

https://tronixstuff.com/2014/12/01/tutorial-using-ds1307-and-ds3231-real-time-clock-modules-with-arduino/

swarner1033 commented 3 years ago

Possible improvement: get the current time from internet on reset

swarner1033 commented 3 years ago

Using this example for timing instead: https://www.instructables.com/Command-Line-Assembly-Language-Programming-for-Ard-3/

Change back to 40b08a67c034a109a4cb00b98818a32f7fb26b43 version where timer_ticks are stored in dseg if you run out of registers. Slower as values are loaded from data memory more often but more consistent code and less registers used.

swarner1033 commented 3 years ago

image