Software Examples
15
SLAU802 – March 2019
Copyright © 2019, Texas Instruments Incorporated
MSP430FR2476 LaunchPad™ Development Kit (LP
‑
MSP430FR2476)
3.1.1
Source File Structure
The project is split into multiple files (see
). This makes it easier to navigate and reuse parts of it
for other projects.
Table 6. Source File and Folders
Name
Description
main.c
Out-of-Box demo main function
Library: driverlib
Device driver library
3.1.2
Overview
When powering up the Out-of-Box demo, the board performs an initial temperature calibration and
illuminates RGB LED2 in a green color. Try to heat the temperature sensor U1 by blowing hot air on it to
see if you can get LED2 to turn red or using a compressed air can to blow cold air onto the sensor to see
LED2 turn blue. LED2 indicates the relative difference between the current temperature and the calibrated
measurement.
Press button S1 to recalibrate the temperature to the most recent measurement and send a UART
message (at 9600 baud) containing the new calibrated temperature through the backchannel UART. Press
button S2 at any time to send a UART message containing the current ambient temperature measurement
in Celsius.
3.2
Blink LED Example
This software example shows how to software toggle a GPIO to blink an LED on the LaunchPad
development kit.
3.2.1
Source File Structure
The project is split into multiple files (see
). This makes it easier to navigate and reuse parts of it
for other projects.
Table 7. Source File and Folders
Name
Description
main.c
The Blink LED main function
Library: Driverlib
The main code uses the MSP430 Driver Library to halt the watchdog timer and to configure and toggle the
P1.0 GPIO pin connected to the LED inside a software loop.