DLPU134 April 2024
The Smart Home GUI demo is created solely by the MSPM0 and the graphics library. No images are being used from MicroSD card or FW images.
Selecting Smart Home demo on the main menu calls case statement St_MMENUSH and sets StateNow = St_DEMO. This calls the function ExecMain() and calls the StateDemo() function. The state demo function calls multiple graphics-related functions that display in the demo. The functions are listed below:
On the right side of the display, there are four icons that the user can select with the EVM push button. The icons consists of an exclamation point, check mark, calendar, and house icon. Using the push button to select the exclamation point icon on the right calls the function MessagesNow(). This functions creates an image with text. Using the push button to select the check mark calls the function ToDoNow(). This function generates a dynamic check list of items. Using the push button to select the calendar calls the function CalendarNow(). This function generates a generic calendar image. Using the push button to select the house icon exits the smart home demo and returns to the main menu.
The animation and colors for the icons when switching between them or selecting them are controlled with the following functions.
Moving between and selecting icons: