
Software Examples
17
SLAU666B – June 2016 – Revised May 2018
Copyright © 2016–2018, Texas Instruments Incorporated
BOOSTXL-SENSORS Sensors BoosterPack Plug-in Module
With both the OPT3001 tile on and the Light Sensing toggle box checked, the image darkens, whether or
not gesture recognition is enabled (see
).
Figure 17. Light Sensing in the Gesture Recognition Window
Board movement data is updated whenever the BMI160 is sampled; that is, it follows the same frequency
as the BMI160 drop-down selection box. If motion detection is not enabled, no related calculations are
done on the microcontroller and hence no update occurs.
Similarly, light sensing data is updated whenever the OPT3001 is sampled.
3.2
BOOSTXL-SENSORS_TI-RTOS_SensorGUI_MSP432P401R
This section describes the functionality structure of the BOOSTXL-
SENSORS_TI_RTOS_SensorGUI_MSP432P401R demo that is included in the
download, or more easily accessible through the SimpleLink MSP432 SDK (see
).
This example requires TI-RTOS MSP43x version 2_16_01_14 to be installed in CCS.
More information on the use of TI-RTOS can be found within the TI-RTOS User's Guide.
3.2.1
Source File Structure
lists the source files and folders.
Table 11. Source Files and Folders
Name
Description
OS: TI-RTOS
Real-Time Operating System using TI-RTOS Kernel
Library: driverlib
Device driver library (
bme280.c
Driver for communicating with the environmental sensor
bme280_support.c
Support driver for communicating with the environmental sensor
bmi160.c
Driver for communicating with the IMU and magnetometer sensors
bmi160_support.c
Support driver for communicating with the IMU and magnetometer sensors
MSP_EXP432P401R.c
Driver for setting up board specific items (for example, I
2
C and UART)
main.c
The demo's main function, tasks, semaphores, global variables, and others
opt3001.c
Driver for communicating with the ambient light sensor
tmp007.c
Driver for communicating with the infrared temperature sensor