check_active — Is I/O active longer than?
bool check_active(uint8 io, uint32 ms);
Check if the I/O indexed by io is in active state for ms milli-seconds or more.
check_active() is the combination of is_active() with time_active() . |
Returns true if the I/O is active longer than ms milli-seconds, FALSE
otherwise.
main { if(check_active(BUTTON_19, 5000)) { set_val(BUTTON_5, 100.0); } }