A digital clock application provides a good platform to illustrate the components that we discussed in this chapter. We'll use PuTTY to allow the user to set the time and then call
HAL_GetTick () to provide a time-base for our digital clock that is displayed on the GLCD. We'll call this recipe
Follow the following steps to create a digital clock:
ticToc_c3v0recipe and, within it, a new project (
ticToc) and use the RTE manager to select board support for Graphic LCD.
serial.hfiles to the project folder and add them to the project.
time_t) in the
ticToc.hheader file. Please note that we could declare each ...