| 
   
    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>)" 
   19 template <
class Sender>
 
   41       auto maxval = (1 << Sender::precision()) - 1;
 
   45       auto val = constrain(rawval, 0, maxval);
 
  
const MIDICNChannelAddress address
 
void update() override
Update this updatable.
 
#define BEGIN_CS_NAMESPACE
 
An abstract class for rotary encoders that send absolute MIDI events.
 
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 begin() override
Initialize this updatable.
 
uint16_t analog_t
The type returned from analogRead and similar functions.
 
uint8_t A
The pin connected to the A pin of the encoder.
 
const uint8_t pulsesPerStep
 
A struct for the pins of a rotary (quadrature) encoder without a switch.
 
MIDIAbsoluteEncoder(const EncoderPinList &pins, const MIDICNChannelAddress &address, int16_t multiplier, uint8_t pulsesPerStep, const Sender &sender)