struct State { }; {{ GENERATED_CODE }} void evaluate(Context ctx) { if (!isInputDirty(ctx)) return; auto pin = getValue(ctx); auto frequency = getValue(ctx); auto duration = getValue(ctx); tone(pin, frequency); delay(duration*1000); noTone(pin); }