readTemperature
Add-On Required: This feature requires the MATLAB Support Package for Raspberry Pi Hardware add-on.
Description
[
returns one sample of the temperature measured in degree Celsius along with the
tempReadings
,timestamp
] = readTemperature(sensorobj
)timestamp
. Timestamp
is optional.
Note
The readTemperature
function is available for the
LSM6DS3
, LSM6DS3H
,
LSM6DSL
, LSM6DSM
,
LSM6DSR
, LSM6DSO
,
LPS22HB
, LSM303C
,
HTS221
, ICM20948
,
ADXL345
, and LIS3DH
sensors.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2021a