This clock will get number of days till an event as input and countdown. Number of days will be shown on LCD and time on the 8 digit 7 seg display.

This is a rather basic project, however, it contains some nice and usefull functions, like giving buttons 2 type of states : short press and long press. This effectively extends number of actions program can do. We are also using a rotary encoder as a easy know to adjust a value. A button on the rotary encoder can also exist in 2 states. 


Instead of having multiple if else loops, we are using Switch/case functions. With this, we can programm the code to execute something, depending on what state buttons are at. We have 3 states, defult, setup and running. 


Lastly, everything is nicely packed in the case. Hope you like it guys !