TM1637_DS3231_clock0.ino sketch, my clock work as a .. clock :))) like in movie named Arduino clock with DS3231 on TM1637 display
In Arduino clock with DS3231 on TM1637 display (2) movie, you cand see the diference on display and in sketch....
Next step was to put an encoder (KY-040) to change hours and minutes, schematic is:
For change hours, must long push (2-3 seconds) the push button from encoder, and you will see
so, must rotate clocwise to increase value or rotate antioclockwire (trigonometric sense) to decrease value for hour. When hour has desired value must push on button from encoder to enter in mode to change minutes:
Procedure is similar, and after change value for minutes must push on button from encoder to enter in usual mode, as a claock.
TM1637_DS3231_clock1.ino sketch must be used for have a clock like in my description or in ceas cu DS3231 si Arduino pe afisaj TM1637 (3) movie: