10 #include "owb_rmt.h" |
10 #include "owb_rmt.h" |
11 #include "ds18b20.h" |
11 #include "ds18b20.h" |
12 #include "config.h" |
12 #include "config.h" |
13 |
13 |
14 |
14 |
15 #define GPIO_DS18B20_BUS (CONFIG_ONE_WIRE_BUS) |
15 #define GPIO_DS18B20_BUS (CONFIG_ONE_WIRE_BUS) ///< GPIO pin for the one-wire bus. |
16 #define DS18B20_RESOLUTION (DS18B20_RESOLUTION_12_BIT) |
16 #define DS18B20_RESOLUTION (DS18B20_RESOLUTION_12_BIT) ///< Desired DS18B20 resolution. |
17 |
17 |
18 |
18 |
19 static const char *TAG = "task_ds18b20"; |
19 static const char *TAG = "task_ds18b20"; |
20 static const char *dsErrors[] = { "Ok", "CRC error", "Read error" }; |
20 static const char *dsErrors[] = { "Ok", "CRC error", "Read error" }; |
21 |
21 |