mirror of
https://github.com/rfivet/stm32bringup.git
synced 2024-12-18 14:56:22 -05:00
21 lines
448 B
C
21 lines
448 B
C
/* dht11.h -- DHT11 API */
|
|
/* Copyright (c) 2020 Renaud Fivet */
|
|
|
|
typedef enum {
|
|
DHT11_SUCCESS,
|
|
DHT11_FAIL_TOUT,
|
|
DHT11_FAIL_CKSUM
|
|
} dht11_retv_t ;
|
|
|
|
|
|
/* 5 .. 95 %RH, -20 .. 60 C */
|
|
extern unsigned char dht11_humid ; /* 5 .. 95 %RH */
|
|
extern signed char dht11_tempc ; /* -20 .. 60 C */
|
|
extern unsigned char dht11_tempf ; /* .0 .. .9 C */
|
|
|
|
|
|
void dht11_init( void) ;
|
|
dht11_retv_t dht11_read( void) ;
|
|
|
|
/* end of dht11.h */
|