Executing code on button release

I have been able to execute code on button press using BLYNK_WRITE(pin) {} but I wanted to know how I could execute code when a button is released.

@eldaromer

BLYNK_WRITE(1)
{
if (param.asInt()) {
//HIGH
enable();
} else {
disable();
}
}

1 Like