Arduino Helpers master
Utility library for Arduino
Classes | Variables
RegisterEncoders.hpp File Reference
#include <AH/Arduino-Wrapper.h>
#include <AH/Settings/NamespaceSettings.hpp>
#include <AH/Containers/Array.hpp>
#include <AH/STL/limits>
#include <AH/STL/type_traits>
+ Include dependency graph for RegisterEncoders.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RegisterEncoders< RegisterType, NumEnc, EncoderPositionType, InterruptSafe >
 Class for keeping track of the position of multiple rotary encoders. More...
 
class  RegisterEncoders< RegisterType, NumEnc, EncoderPositionType, InterruptSafe >::Encoder
 Proxy to access a single encoder of the encoders managed by RegisterEncoders. More...
 

Variables

static constexpr int8_t RegisterEncodersLUT [16]
 Lookup table that maps rotary encoder (2-bit gray code) state changes to position deltas. More...
 

Variable Documentation

◆ RegisterEncodersLUT

constexpr int8_t RegisterEncodersLUT[16]
staticconstexpr
Initial value:
= {
0,
+1,
-1,
+2,
-1,
0,
-2,
+1,
+1,
-2,
0,
-1,
+2,
-1,
+1,
0,
}

Lookup table that maps rotary encoder (2-bit gray code) state changes to position deltas.

Definition at line 14 of file RegisterEncoders.hpp.