tm1637-dec

cesars/tm1637/tm1637-dec

No description
tm1637-dec
@/tm1637-dec
1637@/tm1637-dev
Numbernumber
Input number to display
Zerosboolean
Activated leading zeros
Lengthnumber
Length in digits 0-5
Positionnumber
Position to display
UPDpulse
Pulse display number
tm1637-dec
1637
Number
Zeros
Length
Position
UPD
1637'
DONE
DONEpulse
Pulse done
1637'@/tm1637-dev
To use the node in your project you should have the cesars/tm1637 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

node {

        void evaluate(Context ctx) {

        emitValue<output_1637U0027>(ctx, getValue<input_1637>(ctx));
        if (!isInputDirty<input_UPD>(ctx)) return;

        auto Display = getValue<input_1637>(ctx);

        Display->showNumberDec((int)getValue<input_Number>(ctx), (bool)getValue<input_Zeros>(ctx),
                               (uint8_t)getValue<input_Length>(ctx), (uint8_t)getValue<input_Position>(ctx));
        emitValue<output_DONE>(ctx, 1);
    }
}