74HC595inputsX4

Usefull to drive up to 4 x 74HC595
Author: Djeremaille
License:
Github: djrm/gpio/spi/74HC595inputsX4.axo

Inlets

frac32 chain in

bool32 led 1

bool32 led 2

bool32 led 3

bool32 led 4

bool32 led 5

bool32 led 6

bool32 led 7

bool32 led 8

int32 chain in i

Outlets

int32 out

int32 chain out i

frac32 out

frac32 chain out

Parameters

int32 0to3

Control Rate
outlet_outi = ((inlet_led1 ? 1 : 0) | (inlet_led2 ? 1 << 1 : 0) |
               (inlet_led3 ? 1 << 2 : 0) | (inlet_led4 ? 1 << 3 : 0) |
               (inlet_led5 ? 1 << 4 : 0) | (inlet_led6 ? 1 << 5 : 0) |
               (inlet_led7 ? 1 << 6 : 0) | (inlet_led8 ? 1 << 7 : 0))
              << (param_0to3 * 8);

outlet_outf = outlet_outi;
outlet_chainoutf = inlet_inf + outlet_outf;
outlet_chainouti = inlet_ini + outlet_outi;

Privacy

© 2024 Zrna Research