Skip to main content

Module sim

Module sim 

Source
Expand description

An HDC1080 that is not there.

part answers the way an HDC1080 at 22.5 C and 45 % does, and reporting at any temperature and humidity. It answers at the one address the part has, I2C_ADDRESS, and a measurement reads temperature then humidity in one four-byte read, as the part’s does.

Constants§

CELSIUS
The temperature part reports.
RELATIVE_HUMIDITY
The relative humidity part reports, as a percentage.

Functions§

part
An HDC1080 reading CELSIUS and RELATIVE_HUMIDITY.
reporting
An HDC1080 that reads what it is asked to.