AHT10 Sensor
Trait implementation#
Impl new for AHT10#
Returns pointer to the struct .
Impl initialise for AHT10#
Initiates the transmission by self initiating the sensor.
Returns true if done otherwise false.
Impl soft_reset for AHT10#
Restart sensor, without power off.
Impl read_to_buffer for AHT10#
Reads data from slave.
Impl trigger_slave for AHT10#
Triggers the AHT10 to read temperature/humidity.
Impl wait_for_idle for AHT10#
Causes delay of 5ms when status bit is 0 and sensor is busy.
Impl perform_measurement for AHT10#
Performs measurement .
Impl status for AHT10#
Reads status bit returned by the slave.
Impl relative_humidity for AHT10#
Reads 20 bit raw humidity data and returns relative humidity in percentage.
Impl temperature for AHT10#
Reads 20 bit raw temperature data and returns temperature in degree celsius .