Diff: DHT.h
- Revision:
- 4:b2afd9bfe53e
- Parent:
- 2:df22ddf10d75
--- a/DHT.h Fri Aug 15 20:55:43 2014 +0000 +++ b/DHT.h Wed Jun 09 06:18:25 2021 +0000 @@ -35,8 +35,7 @@ #include "mbed.h" -typedef enum eType eType; -enum eType { +typedef enum eType { DHT11 = 11, SEN11301P = 11, RHT01 = 11, @@ -45,10 +44,9 @@ SEN51035P = 22, RHT02 = 22, RHT03 = 22 -}; +} eType; -typedef enum eError eError; -enum eError { +typedef enum eError { ERROR_NONE = 0, BUS_BUSY, ERROR_NOT_PRESENT, @@ -57,14 +55,13 @@ ERROR_DATA_TIMEOUT, ERROR_CHECKSUM, ERROR_NO_PATIENCE -}; +}eError; -typedef enum eScale eScale; -enum eScale { +typedef enum eScale { CELCIUS = 0, FARENHEIT, KELVIN -}; +}eScale; class DHT