This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
ManyAddresses/CCButtonMatrix.hpp
Go to the documentation of this file.
1 #pragma once
2 
6 
8 
9 namespace Bankable {
10 namespace ManyAddresses {
11 
33 template <setting_t NumBanks, uint8_t nb_rows, uint8_t nb_cols>
35  : public MIDIButtonMatrix<ManyMatrixAddresses<NumBanks, nb_rows, nb_cols>,
36  DigitalCCSender, nb_rows, nb_cols> {
37  public:
66  const OutputBankConfig &config, const PinList<nb_rows> &rowPins,
68  const Array<AddressMatrix<nb_rows, nb_cols>, NumBanks> &controllers,
69  const Array<MIDICNChannel, NumBanks> &channelCNs,
70  const DigitalCCSender &sender = {})
72  DigitalCCSender, nb_rows, nb_cols>{
73  {config, controllers, channelCNs}, rowPins, colPins, sender} {}
74 };
75 
76 } // namespace ManyAddresses
77 } // namespace Bankable
78 
Bankable::ManyAddresses::ManyMatrixAddresses
Definition: BankAddresses.hpp:115
Bankable
A namespace for MIDI elements that can be added to a Bank, to change their address or channel.
Definition: BankAddresses.hpp:7
DigitalCCSender.hpp
Array< pin_t, N >
BankAddresses.hpp
DigitalCCSender
Definition: DigitalCCSender.hpp:7
Bankable::ManyAddresses::CCButtonMatrix
A class of MIDIOutputElements that read the input from a matrix of momentary push buttons or switches...
Definition: ManyAddresses/CCButtonMatrix.hpp:34
MIDIButtonMatrix.hpp
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition: NamespaceSettings.hpp:9
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition: NamespaceSettings.hpp:10
Bankable::ManyAddresses::CCButtonMatrix::CCButtonMatrix
CCButtonMatrix(const OutputBankConfig &config, const PinList< nb_rows > &rowPins, const PinList< nb_cols > &colPins, const Array< AddressMatrix< nb_rows, nb_cols >, NumBanks > &controllers, const Array< MIDICNChannel, NumBanks > &channelCNs, const DigitalCCSender &sender={})
Create a new Bankable CCButtonMatrix object with the given pins, controller numbers and channel.
Definition: ManyAddresses/CCButtonMatrix.hpp:65
OutputBankConfig
A struct for selecting the bank of BankableMIDIOutputs and the bank type.
Definition: BankConfig.hpp:50
ButtonMatrix::rowPins
const PinList< nb_rows > rowPins
Definition: ButtonMatrix.hpp:76
Bankable::MIDIButtonMatrix
MIDIButtonMatrix.
Definition: Bankable/Abstract/MIDIButtonMatrix.hpp:29
Bankable::MIDIButtonMatrix< ManyMatrixAddresses< NumBanks, nb_rows, nb_cols >, DigitalCCSender, nb_rows, nb_cols >::sender
DigitalCCSender sender
Definition: Bankable/Abstract/MIDIButtonMatrix.hpp:80
ButtonMatrix::colPins
const PinList< nb_cols > colPins
Definition: ButtonMatrix.hpp:77