tm1637-v2-digits

cesars/tm1637-v2/tm1637-v2-digits

Display data value
tm1637-v2-digits
@/tm1637-v2-digits
Display data value
1637-2@/tm1637-v2-dev
Input from Dev
Digitnumber
Input number digit 0-3
Valuenumber
Input value to display
UPDpulse
Pulse update
tm1637-v2-digits
1637-2
Digit
Value
UPD
1637-2'
DONE
DONEpulse
Pulse done
1637-2'@/tm1637-v2-dev
Output dev
To use the node in your project you should have the cesars/tm1637-v2 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_1637_2U0027>(ctx, getValue<input_1637_2>(ctx));
        if (!isInputDirty<input_UPD>(ctx))return;

        auto Display = getValue<input_1637_2>(ctx);

        Display->display((uint8_t)getValue<input_Digit>(ctx),(Number)getValue<input_Value>(ctx));

        emitValue<output_DONE>(ctx, 1);
    }
}