matrix-row

cesars/matrix/matrix-row

Select row device
matrix-row
@/matrix-row
Select row device
72XX@/matrix-dev
Input from Dev
ADDRnumber
Address device 0-7, max 8 devices
ROWnumber
Select row
BYTEbyte
Input data byte
UPDpulse
Setting data
matrix-row
72XX
ADDR
ROW
BYTE
UPD
72XX'
DONE
DONEpulse
Pulse done
72XX'@/matrix-dev
To use the node in your project you should have the cesars/matrix 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 {
};

{{ GENERATED_CODE }}

void evaluate(Context ctx) {

    emitValue<output_72XXU0027>(ctx, getValue<input_72XX>(ctx));
    if (!isInputDirty<input_UPD>(ctx))
        return;

        auto led = getValue<input_72XX>(ctx);
        led->setRow((int)getValue<input_ADDR>(ctx), (int)getValue<input_ROW>(ctx),(char)getValue<input_BYTE>(ctx));

        emitValue<output_DONE>(ctx, 1);

}