7 #ifndef Potentiometer_H
8 #define Potentiometer_H
31 void midiCC(
int v,
int oldv);
43 void bound(
int iMin,
int iMax);
void readAvr()
read the values for couple of iterations for a smoother value and send a midi message if the fader or...
Definition: Potentiometer.cpp:54
int readValue(bool &changed)
read and return the analog value, pass state change
Definition: Potentiometer.cpp:84
int readValueAvr(bool &changed)
read and return a smooth analog value, pass state change
Definition: Potentiometer.cpp:92
void bound(int iMin, int iMax)
map and bound the analog readings to minimum and maximum values, useful for normalizing light or forc...
Definition: Potentiometer.cpp:76
Potentiometer(byte p)
constructor with pin number.
Definition: Potentiometer.cpp:11
~Potentiometer()
Definition: Potentiometer.cpp:33
void read()
read the values and send a midi message if the fader or knob state changed. use in main loop ...
Definition: Potentiometer.cpp:38
void changeSecondary(bool s)
enable or disable the secondary super knob cc messages
Definition: Potentiometer.cpp:150
Class for handling faders, knobs or other analog input.
Definition: Potentiometer.h:19