zephyr/samples/sensor/qdec
Gerson Fernando Budke 0f472f6d1b drivers: sensors: Update sam qdec driver to use pinctrl
This update Atmel sam qdec sensor driver to use pinctrl driver and API.
It update board and sample with new pinctrl groups format.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2022-03-24 15:45:37 -07:00
..
boards drivers: sensors: Update sam qdec driver to use pinctrl 2022-03-24 15:45:37 -07:00
src
CMakeLists.txt cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
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>