This sample shows how to use the ADC API. Depending on the support of sequential reads in the driver, 1 or 2 channels are read and printed. A devicetree overlay is necessary to specify the used ADC channel(s). Signed-off-by: Martin Jäger <martin@libre.solar>
9 lines
177 B
CMake
9 lines
177 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.13.1)
|
|
|
|
find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
|
|
project(ADC)
|
|
|
|
target_sources(app PRIVATE src/main.c)
|