dht_split_read

Function dht_split_read 

Source
pub fn dht_split_read<Error>(
    dht: DhtType,
    input_pin: &mut dyn InputPin<Error = Error>,
    delay_us: &mut dyn FnMut(u16),
) -> Result<DhtValue, DhtError>
Expand description

Call this function immediately after initialization to acquire proper sensor readings.

ยงArguments

  • dht - DHT sensor type
  • input_pin - Input pin trait for DHT data pin
  • delay_us - Closure with delay/sleep/whatever API with microseconds as input, NOTE that for low frequency CPUs (about 2Mhz or less) you should pass empty closure.