LCD_screen — Clock
A clock is declared with the gClock class:
The gClock class has two functions:
myClock.define(&myScreen, 160, 120, 100);
myClock.draw(hour, minute, second, "message");
The new library uses integers only to save memory (no need for the 6KB real library!) and processing power.
The graphic is updated only if the values passed are different from the previous ones. This allows smoother graphics and faster drawing.
Typically, the clock refresh requires 0 ms or less than 30-70-140 ms, depending on the size and controller of the screen, and on whether second, minute and hour have changed.