matrix-max-dev

cesars/matrix/matrix-max-dev

No description
matrix-max-dev
@/matrix-max-dev
72XX@/matrix-dev
GETpulse
matrix-max-dev
72XX
GET
72XX'
MAXDEV
DONE
DONEpulse
MAXDEVnumber
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_GET>(ctx))
        return;

    auto led = getValue<input_72XX>(ctx);
    int maxDevice;
    maxDevice = led->getDeviceCount();
    emitValue<output_MAXDEV>(ctx, maxDevice);
    emitValue<output_DONE>(ctx, 1);
 
}