#include <Arduino.h>#include <HardwareTimer.h>Go to the source code of this file.
Classes | |
| class | STM32Encoder |
| Class which operates an STM32 timer in quadrature encoder mode. More... | |
This file contains a class which allows timer/counters on an STM32 to be used to read quadrature encoders within the Arduino environment. This code is a bit kludgey, as it was put together quickly in response to a fairly urgent need, but it has been tested and seems to work. It comes with no guarantees; YMMV. Valuable assistance was found at https://www.edwinfairchild.com/2019/04/interface-rotary-encoder-right-way.html
This file has been modified from code by JR Ridgeley for our purposes. Original code is at https://github.com/spluttflob/ME507-Support/blob/master/examples/encoder_counter.cpp
Source code available here: https://github.com/chstanto/Zen_Garden/blob/main/src/EncoderDriver.cpp
This file contains a class which allows timer/counters on an STM32 to be used to read quadrature encoders within the Arduino environment. This code is a bit kludgey, as it was put together quickly in response to a fairly urgent need, but it has been tested and seems to work. It comes with no guarantees; YMMV. Valuable assistance was found at https://www.edwinfairchild.com/2019/04/interface-rotary-encoder-right-way.html
This file has been modified from code by JR Ridgeley for our purposes. Original code is at https://github.com/spluttflob/ME507-Support/blob/master/examples/encoder_counter.h
Source code available here: https://github.com/chstanto/Zen_Garden/blob/main/src/EncoderDriver.h