[−][src]Function dht_hal_drv::dht_split_read
pub fn dht_split_read<Error>(
dht: DhtType,
input_pin: &mut dyn InputPin<Error = Error>,
delay_us: &mut dyn FnMut(u16)
) -> Result<DhtValue, DhtError>
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.