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:
Digi-Clock Unit - https://shop.m5stack.com/products/red-7-segment-digit-clock-unit?ref=pfpqkvphmgr
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 miniuts 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
Comments
Please log in or sign up to comment.