The datasheet refers to the 74HC595 as an “8-bit serial-in, serial or parallel-out shift register with output latches; 3-state.” In other words, you can use it to control 8 outputs at a time while only taking up a few pins on your microcontroller. Normal use 3 pins, or 5 pin with Enable and Clear.
As it is a device, the main node is one, which is combined with others to complete the function.
DS(data serial) — pin 14 HC595
LT(latch) — pin 12 HC595
CLK(clock) — pin 11 HC595
CLR(clear -reset) — pin 10 HC595 (low)
EN(enable) — pin 13 HC595 (low)
DEV(output device) — connection to the rest of the nodes
I do not have the knowledge in C ++ or in XOD-C to do it
Some ideas, xodball is a container does not work as a library
HC595-container.xodball (10.0 KB)