IO Variants: 2
Variant: 1
frac32 in
bool32 trigger pulse
int ptrig;
int32_t pval;
ptrig = 0;
pval = 0;
if ((pval != inlet_in) & (!ptrig)) {
outlet_trig = 1;
pval = inlet_in;
ptrig = 1;
} else {
ptrig = 0;
outlet_trig = 0;
}
Variant: 2
int32 in
bool32 trigger pulse
int ptrig;
int32_t pval;
ptrig = 0;
pval = 0;
if ((pval != inlet_in) & (!ptrig)) {
outlet_trig = 1;
pval = inlet_in;
ptrig = 1;
} else {
ptrig = 0;
outlet_trig = 0;
}