elpekenin/sipo.h

Driver to use Serial In - Parallel Out shift registers.


configure_sipo_pins(pin_names...)
[source]

Configure a list of “pin” names, aka: identifiers for register(s) output.

Caution

You will get a build error if N_SIPO_PINS is not correctly set up.

void set_sipo_pin(uint8_t pin, bool state)
[source]

Update the state of a pin in the internal buffer.

Hint

This will not apply the setting yet, because of performance issues.

You should call send_sipo_state() to get it flushed.

Parameters:
  • pin – The name defined on configure_sipo_pins.

  • state – Whether low or high output is desired.

void send_sipo_state(void)
[source]

Flush the internal buffer into the hardware, to actually get outputs set low/high as desired.