node {
uint8_t sample = 0;
void evaluate(Context ctx) {
auto newValue = getValue<input_IN>(ctx);
if (!isSettingUp() && newValue != sample)
emitValue<output_OUT>(ctx, 1);
sample = newValue;
}
}| IN | OUT |
| 00h | no-pulse |
| 01h | pulse |
| 0Ch | pulse |
| 0Ch | no-pulse |
| 00010111b | pulse |
| 17h | no-pulse |
| 23d | no-pulse |