Skip to content

trung-pham-dinh/DHT11

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

DHT11

implement by HAL on STM32

  1. Config a timer which has frequency of 10^6 Hz, Period to maximum number(2^32)
  2. Call DHT_init() in "USER CODE 2" and pass the pointer to the timer in step 1 as a parameter
  3. Call DHT_EXTI() in HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) callback function
  4. Call DHT_read() whenever you need to get the sensor value
  5. DHT_getTemperature() and DHT_getHumidity() return sensor value

About

implement by HAL on STM32

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published