zephyr/samples/sensor/adc_cmp_npcx/README.rst
Nerijus Bendžiūnas 397ed142ad doc: fix :zephyr-app: paths
During testing I've found one bad path and looked if
there is more.

I've used this oneliner to find more:

```
rg :zephyr-app: | awk '{ print $3 }' | while read dir
do
    test -d $dir || echo $dir
done | grep '^samples' | grep -v '<' | sort | uniq

```

Signed-off-by: Nerijus Bendžiūnas <nerijus.bendziunas@gmail.com>
2023-07-17 16:51:16 -04:00

28 lines
681 B
ReStructuredText

.. _adc_cmp_npcx:
NPCX ADC Comparator
###################
Overview
********
This sample show how to use the NPCX ADC Comparator driver. The
sample supports the :ref:`npcx9m6f_evb`.
This application is a voltage comparator with hysteresis, upper limit is
set at 1 V while lower limit is 250 mV. Initially configured to detect
upper limit.
Building and Running
********************
Build the application for the :ref:`npcx9m6f_evb` board, and provide voltage
to ADC channel 8, when voltages cross upper/lower limits, detection messages
will be printed.
.. zephyr-app-commands::
:zephyr-app: samples/sensor/adc_cmp_npcx
:board: npcx9m6f_evb
:goals: flash
:compact: