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 typeinput_pin- Input pin trait for DHT data pindelay_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.