Reference   Language | Libraries | Comparison | Changes

CurieIMU

readTemperature()

Description

Returns the raw value of the temperature value read by the built-in motion sensor

Syntax

CurieIMU.readTemperature()

Return

The value of the read temperature is 16 bit signed. To convert this value you can use the following formula:
Celsius=(raw/512.0)+23

See also

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.

Share