Control Surface main
MIDI Control Surface library for Arduino
Bankable/CCButtonMatrix.hpp
Go to the documentation of this file.
1#pragma once
2
6
8
9namespace Bankable {
10
28template <uint8_t NumRows, uint8_t NumCols>
30 : public MIDIButtonMatrix<MatrixAddress<NumRows, NumCols>, DigitalCCSender,
31 NumRows, NumCols> {
32 public:
59 CCButtonMatrix(OutputBankConfig<> config, const PinList<NumRows> &rowPins,
60 const PinList<NumCols> &colPins,
61 const AddressMatrix<NumRows, NumCols> &controllers,
62 MIDIChannelCable channelCN, const DigitalCCSender &sender = {})
64 NumRows, NumCols>{
65 {config, controllers, channelCN}, rowPins, colPins, sender} {}
66};
67
68} // namespace Bankable
69
Array2D< uint8_t, NumRows, NumCols > AddressMatrix
Definition: Def.hpp:28
#define END_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
A class of MIDIOutputElements that read the input from a matrix of momentary push buttons or switches...
CCButtonMatrix(OutputBankConfig<> config, const PinList< NumRows > &rowPins, const PinList< NumCols > &colPins, const AddressMatrix< NumRows, NumCols > &controllers, MIDIChannelCable channelCN, const DigitalCCSender &sender={})
Create a new Bankable CCButtonMatrix object with the given pins, controller numbers and channel.
Class that sends MIDI control change messages signifying either "on" or "off".
A class for saving a MIDI channel and cable number.
Definition: MIDIAddress.hpp:24
A namespace for MIDI elements that can be added to a Bank, to change their address or channel.