Hello every body. ![]()
On my lcd screen I want display one line whith date like "Wednesday March 09 2078 12:34:56".
How can I scroll up each element only when changed ?
Saturday March 28 2020 12:34:56 each second of course
Saturday March 28 2020 12:34:56 each time unit seconds turn to 0
Saturday March 28 2020 12:34:56 each time the ten seconds turn to 0
Saturday March 28 2020 12:34:56 each time the unit minutes turn to 0
and so on for name of day, name of month, date, month, year, hour...
How can I scroll left all the line whith date, keeping inside scroll up each element ?
Each scroll is 1 pixel step and speed is 2 characters / seconde.
I my mind I think I need made an object line having scroll left property containing 12 same object rectangle with scroll up property.
But my problem is create structure. I learn it but never understand really.
I can understand existing structure and use or modify it.
Actually I wrote something very bad, without name of day and name of month, without scrolling.
mydate is 03-09-2078 12:34:56
I have an array with 12 arrays with 6 values.
Values are, top left, top hight, width, height of a rectangle and last and new number.
Arrays are for each number in date except 20, I do not change century.
Each second, I "explode" date string in 11 elements, if new number is same old number I do nothing, else I draw a filled rectangle, I print new number, I replace old number by new number.
mydate in arrays is "inverted" 653421900978, I test change left to right, I not change I stop test.
Sorry for my poor english.
Agostino
