node {
void evaluate(Context ctx) {
static_assert(isValidAnalogPort(constant_input_PORT), "must be a valid analog port");
auto enable = getValue<input_EN>(ctx);
pinMode(constant_input_PORT, OUTPUT);
if (enable) {
digitalWrite(constant_input_PORT, HIGH);
}
else {
digitalWrite(constant_input_PORT, LOW);
}
emitValue<output_DONE>(ctx, 1);
}
}