Site Tools
Sidebar
User's Manual
t2:check_release
check_release
check_release — Is I/O release longer than?
Description
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() . |
Parameters
- io: Index of an I/O.
- ms: Time expressed in milli-seconds.
Return Value
Returns true if the I/O is release longer than ms milli-seconds, FALSE
otherwise.
Examples
Example #1 check_release() example
main { if(check_release(BUTTON_19, 250)) { set_val(BUTTON_5, 0.0); } }
See Also
t2/check_release.txt · Last modified: 2016/11/18 13:17 by J2Kbr