17 updateBufferedOutputs();
25 const uint8_t bufferLength = this->buffer.getBufferLength();
26 if (this->bitOrder == LSBFIRST)
27 for (uint8_t i = 0; i < bufferLength; i++)
29 this->buffer.getByte(i));
31 for (int8_t i = bufferLength - 1; i >= 0; i--)
33 this->buffer.getByte(i));
constexpr PinStatus_t LOW
constexpr PinStatus_t HIGH
constexpr PinMode_t OUTPUT
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
#define BEGIN_AH_NAMESPACE
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.
void pinMode(pin_t pin, PinMode_t mode)
An ExtIO version of the Arduino function.
void shiftOut(pin_t dataPin, pin_t clockPin, BitOrder_t bitOrder, uint8_t val)
An ExtIO version of the Arduino function.
void digitalWrite(pin_t pin, PinStatus_t val)
An ExtIO version of the Arduino function.