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