Control Surface arduino-esp32-3.3.0
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
StaticSizeExtendedIOElement.hpp
Go to the documentation of this file.
1/* ✔ */
2
3#pragma once
4
7
9
15template <uint16_t N>
16class StaticSizeExtendedIOElement : public ExtendedIOElement { // LCOV_EXCL_LINE
17 protected:
19
20 public:
25 return generateIncrementalArray<pin_t, N>(getStart(), pin_int_t {1});
26 }
27
28 static constexpr uint16_t length() { return N; }
29};
30
#define END_AH_NAMESPACE
#define BEGIN_AH_NAMESPACE
An abstract base class for Extended Input/Output elements.
Class for reading 8 rotary encoders using a MCP23017 I²C port expander.
A class for ExtendedIOElements with a fixed size.
Array< pin_t, N > pins() const
Get an array containing all pins of the element.