This commit adds a sample for the maxim ds18b20 1-wire temperatue sensor in a single-drop bus configuration. Includes overlay files for nucleo_g0b1re und nrf52840dk_nrf52840 with the required open drain configuration. Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
9 lines
224 B
CMake
9 lines
224 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.13.1)
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
project(ds18b20)
|
|
|
|
FILE(GLOB app_sources src/*.c)
|
|
target_sources(app PRIVATE ${app_sources})
|