DHT11 STM32 Library using HAL Drivers
- Need to set timer freq to 1 us.
dht11_t dht;
init_dht11(&dht, &htim2, dht11_1_GPIO_Port, dht11_1_Pin);
readDHT11(&dht);
- Tested on STM32L071RZ
DHT11 STM32 Library using HAL Drivers
dht11_t dht;
init_dht11(&dht, &htim2, dht11_1_GPIO_Port, dht11_1_Pin);
readDHT11(&dht);