matrix-set

cesars/matrix/matrix-set

Activate - Desactivate single device.
matrix-set
@/matrix-set
Activate - Desactivate single device.
72XX@/matrix-dev
Input from Dev
ADDRnumber
Address device 0-7, max 8 devices
BRIGHTnumber
Intensity led.
ACTboolean
True=Activate                False=Desactivate
SETpulse
Activate module
matrix-set
72XX
ADDR
BRIGHT
ACT
SET
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_SET>(ctx))
        return;

        auto led = getValue<input_72XX>(ctx);
        led->shutdown((uint8_t)getValue<input_ADDR>(ctx), (bool)getValue<input_ACT>(ctx));
        led->setIntensity((uint8_t)getValue<input_ADDR>(ctx),(uint8_t)getValue<input_BRIGHT>(ctx));
        emitValue<output_DONE>(ctx, 1);
}