tm1637-dev

cesars/tm1637/tm1637-dev

TM1637 display interface
tm1637-dev
@/tm1637-dev
TM1637 display interface
pinCLKport
Pin Clock
pinDIOport
Pin DIO
tm1637-dev
1637'
pinCLK
pinDIO
1637'@/tm1637-dev
Output to 1637
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

#pragma XOD require "https://github.com/Cesar-S/TM1637"

#include <TM1637Display.h>

node {
    static_assert(isValidDigitalPort(constant_input_pinCLK), "must be a valid digital port");
    static_assert(isValidDigitalPort(constant_input_pinDIO), "must be a valid digital port");

    meta {
        using Type = TM1637Display*;
    }

    uint8_t mem[sizeof(TM1637Display)];

    void evaluate(Context ctx){
        if (!isSettingUp()) return;
        Type Display = new (mem) TM1637Display(constant_input_pinCLK, constant_input_pinDIO);
        emitValue<output_1637U0027>(ctx, Display);
    }
}