wfdudley / T-watch-2020

a watch project for the TTGO T-watch-2020 version 1
BSD 3-Clause "New" or "Revised" License
84 stars 27 forks source link

TeaTimer added #30

Closed Fra4prg closed 3 years ago

Fra4prg commented 3 years ago

Hello Bill,

I just added another function to the stop watch: TeaTimer I also added some animations and icons. After everything was working the code got dreadful spaghetti code so I decided to completely reprogramme the whole app as simple state machine. Now everything works fine.

Some details on the Tea Timer: With the top left button you can switch between Stop Watch (counting up) and Tea Timer, counting down from a preset time. Set the time with new buttons plus and minus, switch between setting Minutes/Hours/Seconds with the Set button. When Tea Timer count down reaches zero then a melody is played to remember you to pull the tea bag out of your cup (or what else you were waiting for). The melody is played again ervery minute until you press the clear button. Time is flashing between red and orange, also the Icon flashes between cup and bag. --> It's time to pull the tea bag out of your cup! After 30 seconds of goodwill time the sum of time is shown,

Also described in the comments.

Regards Frank