bool32.risingfalling lets flash
bool32 false or true
combo speed
uint16_t t;
bool flash;
if (inlet_flash && !flash) {
flash = 1;
t = 0;
}
if (!inlet_flash) {
flash = 0;
outlet_flash = 0;
}
if (flash) {
t += (1 << attr_speed);
outlet_flash = (t > (1 << 15));
}