Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
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,
63 const DigitalCCSender &sender = {})
65 NumRows, NumCols> {
66 {config, controllers, channelCN}, rowPins, colPins, sender} {}
67};
68
69} // namespace Bankable
70
Array2D< uint8_t, NumRows, NumCols > AddressMatrix
Definition Def.hpp:30
#define END_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
const PinList< NumRows > rowPins
const PinList< NumCols > colPins
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.
A namespace for MIDI elements that can be added to a Bank, to change their address or channel.