#pragma XOD require "https://github.com/Seeed-Studio/Grove_4Digital_Display"
#include <TM1637.h>
node {
meta {
static constexpr typeof_CLK clk = constant_input_CLK;
uint8_t dio = clk + 1;
using Type = TM1637*;
}
uint8_t mem[sizeof(TM1637)];
void evaluate(Context ctx) {
if (!isSettingUp())return;
Type display = new (mem) TM1637(clk, dio);
display->init();
emitValue<output_DEV>(ctx, display);
}
}