tm1637-clr

cesars/tm1637/tm1637-clr

Clear display
tm1637-clr
@/tm1637-clr
Clear display
1637@/tm1637-dev
Input from Dev
CLRpulse
Pulse clear display
tm1637-clr
1637
CLR
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_CLR>(ctx)){
            return;}

        auto Display = getValue<input_1637>(ctx);

        Display->clear();

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