MPLAB® Harmony Graphics Suite
|
Introduction
The MPLAB Harmony Graphics Configurator (MHGC) makes it easy to create static (i.e. non-changing) graphics. Creating dynamic (i.e. changing) graphics is slightly more difficult. The purpose of this Advanced Topic is to explore how to add dynamic graphics to a simple graphics application, in this case Aria Quickstart.
Examples of Dynamic Graphics
The Quick Start tutorial Adding an Event to The Aria Quickstart Demonstration shows how to use the press of a button to change the button’s text using Aria Events.
There are many examples of non-static, i.e. dynamic graphics, in the graphics demos found in
the ./gfx_apps/apps folder:
• aria_benchmark: This project shows an opening splash screen and three separate screens. One display calculates performance of text updates. The next display calculates performance of one or more moving squares. The final display calculates performance for image rendering.
• aria_showcase: This project shows an opening splash screen and five screens, with each screen demonstrating a different widget. It also provides support for both English and Chinese text. There is an additional help screen as well.
• aria_showcase_reloaded: This project shows an opening splash screen and seven separate screens: a main menu screen and six additional screens with each screen demonstrating a different advanced widget.
• aria_weather_forecast: This project shows an opening splash screen and three additional screens, each screen showing the weather for a different city using the language native to that city
This project demonstrates the following events/macros
Source |
Internal Destination |
External Destination |
Inside of Graphics |
"Event" - Lesson 1: Dynamic Images Button widget press event hides MPLAB Harmony Logo. |
"Event" - Lesson 2: Buttons and LEDs, Real and Virtual Switch widget events change board LEDs in APP_Tasks via a boolean semaphore. |
Outside of Graphics |
"Macro" - Lesson 2. Buttons and LEDs, Real and Virtual Button widget press is polled in APP_Tasks to change color scheme for Virtual LEDs, mirroring board LEDs. |
Not supported by Event Manager Tool Lesson 2. Buttons and LEDs, Real and Virtual Board switch changes board LEDs in APP_Tasks. |
MPLAB® Harmony Graphics Suite
|