This sample writes the tmp108 temperature to the console once every 3 seconds. There are macro definitions included for turning off and on alerts if that is set up, and also using low power one shot mode. Signed-off-by: Jimmy Johnson <catch22@fastmail.net>
9 lines
223 B
CMake
9 lines
223 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
project(tmp108)
|
|
|
|
FILE(GLOB app_sources src/*.c)
|
|
target_sources(app PRIVATE ${app_sources})
|