1#ifndef J_ENCODER_QUADRATURE_PIN_CHANGE_H
2#define J_ENCODER_QUADRATURE_PIN_CHANGE_H
3#include "EnableInterrupt.h"
23 JEncoderQuadraturePinChange(
byte _encoderAPin,
byte _encoderBPin,
float _distPerCountFactor = 1.0,
bool _reverse =
false,
unsigned long _slowestIntervalMicros = 100000UL)
24 :
JEncoderQuadrature(_encoderAPin, _encoderBPin, _distPerCountFactor, _reverse, _slowestIntervalMicros)
reads a quadrature (incremental) encoder
Definition JEncoderQuadrature.h:13
byte encoderBPin
Definition JEncoderQuadrature.h:17
byte encoderAPin
Definition JEncoderQuadrature.h:16
uses a pin change interrupt library to support more pins than attachInterrupt().
Definition JEncoderQuadraturePinChange.h:13
void turnOffInterrupts()
disable interrupts and stop monitoring encoder
Definition JEncoderQuadraturePinChange.h:37
JEncoderQuadraturePinChange(byte _encoderAPin, byte _encoderBPin, float _distPerCountFactor=1.0, bool _reverse=false, unsigned long _slowestIntervalMicros=100000UL)
constructor, sets pins and settings
Definition JEncoderQuadraturePinChange.h:23
void setUpInterrupts(void(*_isrAPointer)(void), void(*_isrBPointer)(void))
set up pins and interrupts
Definition JEncoderQuadraturePinChange.h:28