tm1637-v2-colon

cesars/tm1637-v2/tm1637-v2-colon

No description
tm1637-v2-colon
@/tm1637-v2-colon
1637-2@/tm1637-v2-dev
Input from Dev
UPDpulse
Pulse update
ACTboolean
True to clock point
tm1637-v2-colon
1637-2
UPD
ACT
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->point((bool)getValue<input_ACT>(ctx));

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