Opt3001 Ambient Light Sensor; Source File And Folders - Texas Instruments BoosterPack Educational Plug-in Module Mark II BOOSTXL-EDUMKII User Manual

Table of Contents

Advertisement

Software Examples
3.3
BOOSTXL-EDUMKII_LightSensor_MSP432P401R
This section describes the functionality and structure of the BOOSTXL-
EDUMKII_LightSensor_MSP432P401R demo that is included in the
Examples
download, or more easily accessible through the
3.3.1
Source File Structure
The project is split into multiple files (see
for other projects.
Name
main.c
msp432_startup_ccs.c
Library: GrLib
Library: driverlib
Driver: LcdDriver
Driver: HAL_I2C.c
Driver: HAL_OPT3001.c
3.3.2
Operation
This demo uses the MSP432 built-in eUSCI module in I
digital ambient light sensor, OPT3001, on the Educational BoosterPack plug-in module MKII (see
Figure
6). The measured illuminance value (Lux) is displayed on the colored 128x128 dot-matrix LCD of
the BoosterPack plug-in module. Using
controller through SPI communication to draw texts.
The demo also controls the brightness of the LCD backlight LED by generating a Timer PWM.
NOTE: Make sure that the J5 jumper on the BOOSTXL-EDUMKII is connected to 3.LCD BACKLT
The demo makes use of the illuminance value by brightening the LCD backlight when high illuminance
value is detected, or by dimming the LCD backlight when low illuminance value is detected.
12
BOOSTXL-EDUMKII Educational BoosterPack™ Plug-in Module Mark II
Table
16). This makes it easier to navigate and reuse parts of it
Table 16. Source File and Folders
The demo's main function, interrupt service routines, global variables, and so on
MSP432 family interrupt vector table for CGT
MSP Graphics Library
Device driver library (MSP432DRIVERLIB)
LCD specific driver files
Generic I2C driver file
OPT3001 sensor specific driver built on top of the HAL_I2C driver
MSP Graphics
Figure 6. OPT3001 Ambient Light Sensor
Copyright © 2015–2017, Texas Instruments Incorporated
MSP-EXP432P401R Software
SimpleLink MSP432 SDK
Description
2
C mode to initialize and gather data from the
Library, the MSP432 MCU sends data to the LCD
SLAU599A – August 2015 – Revised March 2017
www.ti.com
(see
Section
4.3).
Submit Documentation Feedback

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BoosterPack Educational Plug-in Module Mark II BOOSTXL-EDUMKII and is the answer not in the manual?

Questions and answers

Table of Contents