Table of Contents

Example Summary

Sample application to read Temperature from the TMP116 sensor.

Peripherals Exercised

Resources & Jumper Settings

Please refer to the development board’s specific Settings and Resources section in the Getting Started Guide. For convenience, a short summary is also shown below.

Development board Notes
CC1310_LAUNCHXL This example uses BOOSTXL-SENSORS boosterpack
CC1350_LAUNCHXL This example uses BOOSTXL-SENSORS boosterpack
CC3220SF_LAUNCHXL This example uses BOOSTXL-SENSORS boosterpack
MSP-EXP432P401R This example uses BOOSTXL-SENSORS boosterpack
CC2640R2_LAUNCHXL This example uses BOOSTXL-SENSORS boosterpack

Fields left blank have no specific settings for this example.

Example Usage

Starting the i2ctmp116 sensor example...

I2C Initialized!

Temperature High Limit set: 30 (C)

Temperature Low Limit set: 20 (C)

Taking Preliminary Readings...

Temperature: 26.4522 (C)

Temperature: 26.3254 (C)

Temperature: 25.0124 (C)

Application Design Details

This application uses 2 thread:

mainThread - performs the following actions:

  1. Opens and initializes an I2C Driver.

  2. Create Semaphore.

  3. Create tmp116AlertTask.

  4. Initialize the TMP116 sensor and set readout template.

  5. Periodically read the Temperature reading from the TMP116 sensor

tmp116AlertTask - performs the following actions:

  1. Pend on Semaphore.

  2. Check what type of threshold was the MCU alerted for.