main/task_ds18b20.c

changeset 44
e52d11b8f252
parent 28
6d825e2962e4
child 55
43362bb8f3c0
equal deleted inserted replaced
43:70c99c2084dc 44:e52d11b8f252
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

mercurial