Software Examples
www.ti.com
22
SLAU597E–March 2015–Revised January 2018
Submit Documentation Feedback
Copyright © 2015–2018, Texas Instruments Incorporated
MSP432P401R SimpleLink™ Microcontroller LaunchPad™ Development Kit
(MSP
‑
EXP432P401R)
Figure 15. Out-of-Box GUI Running From TI Cloud Tools
Click on the Connect button to connect to the LaunchPad development kit then open the serial COM port.
Once the connection has been established and the GUI indicates, "Target Status: Running…," you can
use the color wheel or the Red, Green, and Blue color sliders to set the color of the LaunchPad
development kit RGB LED. Changing the LED Beats Per Minute input box sets the RGB LED blink rate.
3.2 BOOSTXL-K350QVG-S1 Graphics Library Example
This software is available in the SimpleLink MSP432 SDK (see Section 4.3).
The demo shows how to use the MSP Graphics Library, or "grlib," in a project with the Kentec display.
This demo shows the user how to enable the touch screen, create buttons, and use graphics primitives
including colors and images.
The program begins by calibrating the touch screen. There is a routine that detects the four corner
coordinates to determine if an eligible rectangle boundary is formed. If the calibration was incorrect, a
message displays on the screen to indicate that the calibration failed. When successful, the calibration
provides a reference for all button presses throughout the rest of the program.
The next step is to select the mode of the program: display primitives or images. Each mode simply cycles
through without user interaction to demonstrate features of the display. In the graphics primitives mode,
the following primitives are shown:
• Pixels
• Lines
• Circles
• Rectangles
• Text
The application is heavily commented to ensure it is very clear how to use the grlib APIs. The above
primitives are shown as well as the underlying concepts of grlib including background and foreground
colors, context, fonts, opacity, and more.