struct State {
};
{{ GENERATED_CODE }}
void evaluate(Context ctx) {
if(!getValue<input_EN>(ctx))
return;
auto Trig = getValue<input_TRIG>(ctx);
uint8_t i;
uint32_t t1,tim;
uint32_t timer = 100000;
::pinMode(Trig, OUTPUT);
::digitalWrite(Trig, 0);
for(tim=timer;tim>0;tim--)t1 = tim;
::digitalWrite(Trig, 1);
for(tim=timer;tim>0;tim--)t1 = tim;
::digitalWrite(Trig, 0);
for(tim=timer;tim>0;tim--)t1 = tim;
emitValue<output_OUT>(ctx, true);
}