Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
ShiftRegisterOut.hpp
Go to the documentation of this file.
1/* ✔ */
2
3#pragma once
4
6
7#include <AH/Arduino-Wrapper.h> // MSBFIRST
8
10
17template <uint16_t N>
19 public:
50 ShiftRegisterOut(pin_t dataPin, pin_t clockPin, pin_t latchPin,
51 BitOrder_t bitOrder = MSBFIRST);
52
58 void begin() override;
59
63 void updateBufferedOutputs() override;
64
65 private:
68};
69
71
72#include "ShiftRegisterOut.ipp"
#define END_AH_NAMESPACE
#define BEGIN_AH_NAMESPACE
uint8_t BitOrder_t
A class for serial-in/parallel-out shift registers, like the 74HC595.
A class for serial-in/parallel-out shift registers, like the 74HC595.
void updateBufferedOutputs() override
Write the state buffer to the physical outputs.
ShiftRegisterOut(pin_t dataPin, pin_t clockPin, pin_t latchPin, BitOrder_t bitOrder=MSBFIRST)
Create a new ShiftRegisterOut object with a shift register connected to the given pins,...
void begin() override
Initialize the shift register.
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
An array wrapper for easy copying, comparing, and iterating.
Definition Array.hpp:32