2021-03-26 10:17 PM
Hi,
I wish to use scroll wheel to set clocks and calendars.
i.e. 0 to 23 for hours
0 to 59 for minutes and seconds
1 to 12 for months
1 to 28, 29, 30, 31 for dates
For calendars the month and dates need to start from 1 not zero.
How can I set this when I initialize the scroll wheel.
I see there is a setOffset, but it is s protected function and cannot be used.
Solved! Go to Solution.
2021-03-29 11:27 PM
Hello Garnett.Robert,
If you found out how to do it, could you close this topic by choosing Select as Best ?
Also if possible, could you write briefly the solution so that others can see ?
Thank you in advance,
/Alexandre
2021-03-26 11:09 PM
Once again as soon as I define the problem and ask the question, I immediately work out how to do it.
I wonder if I write up my question, but don't post it I will still be able to work it out?
2021-03-29 11:27 PM
Hello Garnett.Robert,
If you found out how to do it, could you close this topic by choosing Select as Best ?
Also if possible, could you write briefly the solution so that others can see ?
Thank you in advance,
/Alexandre
2021-11-19 06:42 PM
At least Write down your solution here please.
2021-11-29 03:34 PM
Sorry About that.
In the ScreenxView.cpp
you just add 1 to the list:
void Screen4View::scrollWheelDateUpdateCenterItem(textCenterContainer& item, int16_t itemIndex)
{
item.updateText(itemIndex + 1); /* Add one to start the displayed list from 1 */
}