Control Surface  1.2.0
MIDI Control Surface library for Arduino
PBPotentiometer.hpp
Go to the documentation of this file.
1 #pragma once
2 
5 
6 #include <MIDI_Outputs/Abstract/MIDIFilteredAnalog.hpp>
8 
10 
25 class PBPotentiometer : public MIDIFilteredAnalog<PitchBendSender<10>> {
26  public:
38  : MIDIFilteredAnalog(analogPin, address, {}) {}
39 };
40 
42 
MIDIFilteredAnalog
A class for potentiometers and faders that send MIDI events (with only a channel, no address).
Definition: Abstract/MIDIFilteredAnalog.hpp:89
Warnings.hpp
PBPotentiometer
A class of MIDIOutputElements that read the analog input from a potentiometer or fader,...
Definition: PBPotentiometer.hpp:25
AH::pin_t
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
Definition: Hardware-Types.hpp:17
MIDIChannelCN
A class for saving a MIDI channel and cable number.
Definition: MIDIAddress.hpp:19
MIDIFilteredAnalog< PitchBendSender< 10 > >::address
const MIDIAddress address
Definition: Abstract/MIDIFilteredAnalog.hpp:144
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition: Settings/NamespaceSettings.hpp:9
AH_DIAGNOSTIC_POP
#define AH_DIAGNOSTIC_POP()
Definition: Warnings.hpp:36
PBPotentiometer::PBPotentiometer
PBPotentiometer(pin_t analogPin, const MIDIChannelCN &address=CHANNEL_1)
Create a new PBPotentiometer object with the given analog pin and channel.
Definition: PBPotentiometer.hpp:37
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition: Settings/NamespaceSettings.hpp:10
PitchBendSender.hpp
AH_DIAGNOSTIC_WERROR
#define AH_DIAGNOSTIC_WERROR()
Definition: Warnings.hpp:35
CHANNEL_1
constexpr Channel CHANNEL_1
Definition: Channel.hpp:111