Arduino Helpers master
Utility library for Arduino
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:
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"
uint8_t BitOrder_t
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
#define END_AH_NAMESPACE
#define BEGIN_AH_NAMESPACE
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.