Update documentation and fix small issues.

This commit is contained in:
Rafal Zajac
2017-11-13 16:29:21 +01:00
parent 45ab6f8e61
commit 931aee878b
23 changed files with 65 additions and 163 deletions

View File

@ -18,20 +18,20 @@ find_package(esp_ow REQUIRED)
find_package(esp_eb REQUIRED)
find_package(esp_util REQUIRED)
add_executable(ds18b20_temp main.c ${ESP_USER_CONFIG})
add_executable(ds18b20_temp_ex main.c ${ESP_USER_CONFIG})
target_include_directories(ds18b20_temp PUBLIC
target_include_directories(ds18b20_temp_ex PUBLIC
${ESP_USER_CONFIG_DIR}
${esp_sdo_INCLUDE_DIRS}
${esp_ow_INCLUDE_DIRS}
${esp_eb_INCLUDE_DIRS}
${esp_util_INCLUDE_DIRS})
target_link_libraries(ds18b20_temp
target_link_libraries(ds18b20_temp_ex
${esp_sdo_LIBRARIES}
${esp_ow_LIBRARIES}
${esp_eb_LIBRARIES}
${esp_util_LIBRARIES}
esp_ds18b20)
esp_gen_exec_targets(ds18b20_temp)
esp_gen_exec_targets(ds18b20_temp_ex)

View File

@ -7,6 +7,6 @@ Demonstrates how to search OneWire bus for DS18b20.
```
$ cd build
$ cmake ..
$ make ds18b20_temp_flash
$ make ds18b20_temp_ex_flash
$ miniterm.py /dev/ttyUSB0 74880
```

View File

@ -15,13 +15,12 @@
*/
#include <user_interface.h>
#include <osapi.h>
#include <esp_ds18b20.h>
#include <esp_gpio.h>
#include <esp_eb.h>
#include <esp_sdo.h>
#include <esp_util.h>
#include <user_interface.h>
// List of found devices on the OneWire bus.
static esp_ow_device *root = NULL;