How can i set the time using the gui

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can i set the time using the gui

1,874 Views
Cui5222
Contributor II

Hello,

I want to set the time like the iphone, can guiguider realize this function.

image.pngimage.png

0 Kudos
Reply
5 Replies

1,824 Views
Cui5222
Contributor II

I just want to diplay the textlabel like clock, not display time so i do not need to get the value of the RTC.

It just like the drop-down list, but it have two list to set the time both hour and min.image.png

0 Kudos
Reply

1,817 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @Cui5222,

I understood you wish to have a time selector like the calendar widget but for timing; is this correct?

In that case, you would use a timer module instead of the RTC, but the implementation of the scroller that selects hours and minutes would still have to be done manually using custom code.

BR,
Edwin.

0 Kudos
Reply

1,803 Views
Cui5222
Contributor II

So can gui-guider realize this function. Can the digital_clock module setted manual,or use other module.image.png

0 Kudos
Reply

1,789 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @Cui5222,

I'll pass this recommendation to the GUI Guider team. I'm sure they will find it useful.

0 Kudos
Reply

1,855 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @Cui5222,

You could do this using custom code, like described on the following post: How to display time - How-to - LVGL Forum.

As seen there, you can have custom code get the value of the RTC, and then display it on a text label. If you wish to set a different time, you could change the initial value of the RTC.

BR,
Edwin.

0 Kudos
Reply