M5Stack Digital Clock
2022-08-28 | By M5Stack
License: General Public License Drivers / Controllers Arduino
* Thanks for the source code and project information provided by @AJB2K3
Things used in this project
Hardware components
Software apps and online services
Simple Digital Clock.
In this quick guide I will show you the basic code needed to display hours and minutes on the M5Stack Digi-clock unit after retrieving the time using RTC.
For this I used:
Core2 AWS - K010-AWS
Digi-Clock Unit - U076-B
The Digi-clock unit is connected with a provided grove cable to port A of the Core2 AWS. The following simple code is the minimum needed un UIFlow to retrieve time with the RTC and display it on the Digi-clock unit:
The trick to this is to call the hours and miniutes but join them using a text string joining block. A Wait block is needed to prevent the i2C bus from getting overloaded with string messages getting sent.
Stalk/Contact me!
If you would like to reach out you can drop a message here or you can drop a message on our Facebook group here: https://www.facebook.com/groups/m5stack
The Official forums here: https://community.m5stack.com
Via Twitter : https://twitter.com/Cpt_J_Purcell
Code