1.3k views
in GUI Development by
Does anyone have an example of how to tie the RTC on the discovery board to a TimePicker widget??

1 Answer

+1 vote
by

Hi,

please have a look into the example BezierClock - there you will find an implementation of the time picker widget in the class BezierClock::SettingsScreen.

Setting the RTC on STM32F429-Discovery can be done by using the function EwBspClockSetTime() (as it is used in ewmain.c in function EwInit()).

Best regards,

Manfred.

by
Thanks Manfred. I have the RTC clock working with the TimePicker, but the clock is a little slow. How do I calibrate the clock?
by
How do I set the TimePIcker to 12 hour mode?
by
Concerning the RTC "calibration" - if the RTC does not work correctly, please check the clock settings of your MCU.

Concerning the 12 hour mode: In this case - the day still has 24 hours - you can adapt the method BezierClock::TimePicker.OnLoadHourItem() so that the strings of the list items are in the range from 0...12 instead of 0...23.

Btw: Within the Build Environment for STM32F429-Discovery, you will find also the exampled BezierClock - it is already adapted to work with the RTC.

Best regards,

Manfred.
by
Thanks again Manfred. I didn't quite having it set up right. This was a big help. It is working great. Clock is accurate.

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...