PebbleOS
Loading...
Searching...
No Matches
Functions
Temperature sensor

On-chip temperature sensor. More...

Functions

void temperature_init (void)
 Initialize the temperature sensor.
 
int32_t temperature_read (void)
 Read the temperature.
 

Detailed Description

On-chip temperature sensor.

Function Documentation

◆ temperature_init()

void temperature_init ( void  )

Initialize the temperature sensor.

◆ temperature_read()

int32_t temperature_read ( void  )

Read the temperature.

Warning
The sensor may not be calibrated: do not rely on the reading as an accurate absolute temperature.
Returns
Temperature in millidegrees Celsius, or INT32_MIN if the conversion timed out.