zephyr/samples/sensor/qdec
Kumar Gala 70fc8bd38a samples: sensor: add integration_platforms
Add one integration_platforms based on platform_allow to ensure these
tests get coverage in CI.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-04-09 06:50:47 -04:00
..
boards
src
CMakeLists.txt
prj.conf
README.rst
sample.yaml

.. _qdec:

QDEC: Quadrature Decoder
###########################

Overview
********
A simple quadrature decoder example

Building and Running
********************

This project writes the quadrature decoder position to the console once every
2 seconds.

Building on SAM E70 Xplained board
==================================

.. zephyr-app-commands::
   :zephyr-app: samples/sensor/qdec
   :host-os: unix
   :board: sam_e70_xplained
   :goals: build
   :compact:

Sample Output
=============

.. code-block:: console

    Quadrature Decoder sample application

    Position is 6
    Position is 12
    Position is -45

    <repeats endlessly every 2 seconds>