cs-midi/MIDI_Outputs/CCButtonMatrix.hpp

22 lines
703 B
C++

#pragma once
#include <MIDI_Outputs/Abstract/MIDIButtonMatrix.hpp>
#include <MIDI_Senders/DigitalCCSender.hpp>
BEGIN_CS_NAMESPACE
template <uint8_t NumRows, uint8_t NumCols>
class CCButtonMatrix
: public MIDIButtonMatrix<DigitalCCSender, NumRows, NumCols> {
public:
CCButtonMatrix(const PinList<NumRows> &rowPins,
const PinList<NumCols> &colPins,
const AddressMatrix<NumRows, NumCols> &controllers,
MIDIChannelCable channelCN,
const DigitalCCSender &sender = {})
: MIDIButtonMatrix<DigitalCCSender, NumRows, NumCols>(
rowPins, colPins, controllers, channelCN, sender) {}
};
END_CS_NAMESPACE