hc595-pack

bradzilla84/74hc595/hc595-pack

Pack ALL Pin Values to be sent to DATA Block
hc595-pack
@/hc595-pack
Pack ALL Pin Values to be sent to DATA Block
QHboolean
Data pin
QGboolean
Data pin
QFboolean
Data pin
QEboolean
Data pin
QDboolean
Data pin
QCboolean
Data pin
QBboolean
Data pin
QAboolean
Data pin
hc595-pack
QH
QG
QF
QE
QD
QC
QB
QA
OUT
OUT@/hc595-pack
Out to Data Block.
To use the node in your project you should have the bradzilla84/74hc595 library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

struct State {
};

struct Type {
    uint8_t* items;
};


{{ GENERATED_CODE }}


void evaluate(Context ctx) {
    Type data;
    data.items[0] = getValue<input_QA>(ctx);
    data.items[1] = getValue<input_QB>(ctx);
    data.items[2] = getValue<input_QC>(ctx);
    data.items[3] = getValue<input_QD>(ctx);
    data.items[4] = getValue<input_QE>(ctx);
    data.items[5] = getValue<input_QF>(ctx);
    data.items[6] = getValue<input_QG>(ctx);
    data.items[7] = getValue<input_QH>(ctx);

    emitValue<output_OUT>(ctx, data);
}