Site Tools
Sidebar
User's Manual
t2:is_release
is_release
is_release — Is I/O release?
Description
bool is_release(uint8 io);
Check if the I/O indexed by io is release.
An I/O is release if its value is inside the resting range. |
Parameters
- io: Index of an I/O.
Return Value
Returns true if the I/O is release, FALSE
otherwise.
Examples
Example #1 is_active() example
main { if(is_release(ACCEL_2_Y)) { set_val(BUTTON_8, 100.0); } }
See Also
t2/is_release.txt · Last modified: 2016/11/18 10:53 by J2Kbr