DLPU134 April   2024

 

  1.   1
  2.   Trademarks
  3. 1Purpose and Scope
  4. 2UART Host Interface
    1. 2.1 UART Requirements
    2. 2.2 UART Commands
    3. 2.3 UART Read Commands
    4. 2.4 UART Command Builder Tool
  5. 3MicroSD Card Playback
    1. 3.1 MicroSD Card Overview
    2. 3.2 MicroSD Card Formatting and Configuration
    3. 3.3 MicroSD Card Playback Operation
  6. 4Graphics Library
    1. 4.1 Graphics Library Overview
    2. 4.2 Initial Animations
    3. 4.3 MicroSD Card Images
    4. 4.4 Splash Image
    5. 4.5 Smart Home Demo
  7. 5DSI Mode
    1. 5.1 DSI Mode Overview
  8. 6Revision History

Smart Home Demo

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:

  • SetupMenus(): Creates icons at the right-hand side of the display
  • SetupAlbums(): Creates the icon at the top right-hand side of the display
  • SetupWeather(): Creates the weather display at the bottom left of the display
  • UpdateClock(): Creates the clock visual at the upper left side of the display
  • WeatherNow(): Creates the weather display at the bottom left of the display

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:

  • SelectHome(int move_button)
  • SelectAttention(int move_button)
  • SelectToDo(int move_button)
  • SelectCalendar(int move_button)