matrix-led

cesars/matrix/matrix-led

No description
matrix-led
@/matrix-led
72XX@/matrix-dev
Input fron Dev
ADDRnumber
Address device 0-7, max 8 devices
ROWnumber
Row
COLUMNnumber
Columm
ACTboolean
Activate dp(...)
UPDpulse
Set LED
matrix-led
72XX
ADDR
ROW
COLUMN
ACT
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->setLed((uint8_t)getValue<input_ADDR>(ctx), (uint8_t)getValue<input_ROW>(ctx),
                    (uint8_t)getValue<input_COLUMN>(ctx), (uint8_t)getValue<input_ACT>(ctx));

        emitValue<output_DONE>(ctx, 1);

}