#pragma XOD require "https://github.com/Seeed-Studio/Seeed_Arduino_UltrasonicRanger"
#include <Ultrasonic.h>
node {
meta {
static constexpr typeof_PORT port = constant_input_PORT;
using Type = Ultrasonic*;
}
uint8_t mem[sizeof(Ultrasonic)];
void evaluate(Context ctx) {
if (!isSettingUp())return;
Type sensor = new (mem) Ultrasonic(constant_input_PORT);
emitValue<output_DEV>(ctx, sensor);
}
}