check_release — Is I/O release longer than?
bool check_release(uint8 io, uint32 ms);
Check if the I/O indexed by io is in release state for ms milli-seconds or more.
check_release() is the combination of is_release() with time_release() . |
Returns true if the I/O is release longer than ms milli-seconds, FALSE
otherwise.
main { if(check_release(BUTTON_19, 250)) { set_val(BUTTON_5, 0.0); } }