TM STM32Fxxx HAL Libraries  v1.0.0
Libraries for STM32Fxxx (F0, F4 and F7 series) devices based on HAL drivers from ST from Tilen Majerle

Basic library for AM2301 (DHT21) temperature and humidity sensor. More...

Modules

 TM_AM2301_Macros
 Library defines.
 
 TM_AM2301_Typedefs
 Library Typedefs.
 
 TM_AM2301_Functions
 Library Functions.
 

Detailed Description

Basic library for AM2301 (DHT21) temperature and humidity sensor.

This library does not use any timers and interrupts to increase speed, only basic pooling mode.

Default pinout
AM2301  STM32Fxxx      Description

VCC     3V3-5V         Supply voltage from 3V3 to 5V
GND     GND            Ground
DATA    User selected  Data line
Data output

Temperature and humidity are returned from sensor in x10 multiplier, so like 55.5% humidity, sensor will return 555 and for 27.3 degrees, sensor will return 273.

Note
This values are also returned from my library, you have to manually convert them (divide by 10) if needed.
Changelog
 Version 1.0
  - First release
Dependencies
 - STM32Fxxx HAL
 - defines.h
 - TM DELAY
 - TM GPIO