display-integer

e/troyka-quad-display/display-integer

No description
display-integer
@/display-integer
DEV@/quad-display
NUMnumber
An integer to display
LZboolean
Controls if the leading zeroes are displayed
SHOWpulse
display-integer
DEV
NUM
LZ
SHOW
To use the node in your project you should have the e/troyka-quad-display 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) {
    if (!isInputDirty<input_SHOW>(ctx)) return;

    auto num = getValue<input_NUM>(ctx);
    auto includeLeadingZeroes = getValue<input_LZ>(ctx);
    auto qd = getValue<input_DEV>(ctx);

    qd->displayInt(num, includeLeadingZeroes);
}