/stm32-sht2x

An STM32 HAL library for the SHT2x temperature/humidity sensor series.

Primary LanguageCMIT LicenseMIT

SHT2x_for_STM32_HAL

An STM32 HAL library for the SHT2x temperature/humidity sensor series. Tested on an SHT20.

To test

  • Minimal setup:
                                             _________
                                    N/C 4 --| |_____| |-- 3 N/C
                                    VDD 5 --|         |-- 2 GND
                                   SDA1 6 --|_________|-- 1 SCL1
                                   

Known issues

  • Replaced binary values with hexadecimal for compatibility with Keil.
  • Moved user I2C handle definition from .h header to .c file to prevent multiple definition error. Made definition in .h header extern.