tm1637-v2-clr

cesars/tm1637-v2/tm1637-v2-clr

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

        auto Display = getValue<input_1637_2>(ctx);

        Display->clear();

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