MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
3 #if not defined(Encoder_h_) && not defined(IDE)
5 "The PJRC Encoder library should be included before the Control-Surface " \
6 "library. (#include <Encoder.h>)"
18 template <
class Sender>
47 long currentPosition =
encoder.read();
A super class for object that have to be updated regularly.
An abstract class for rotary encoders that send MIDI events.
MIDIRotaryEncoder(const EncoderPinList &pins, const MIDICNChannelAddress &address, int8_t speedMultiply, uint8_t pulsesPerStep, const Sender &sender)
Construct a new MIDIRotaryEncoder.
const int8_t speedMultiply
void begin() final override
Initialize this updatable.
#define BEGIN_CS_NAMESPACE
uint8_t B
The pin connected to the B pin of the encoder.
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
void update() final override
Update this updatable.
const uint8_t pulsesPerStep
uint8_t A
The pin connected to the A pin of the encoder.
const MIDICNChannelAddress address
A struct for the pins of a rotary (quadrature) encoder without a switch.