is_release — Is I/O release?
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. |
Returns true if the I/O is release, FALSE
otherwise.
main { if(is_release(ACCEL_2_Y)) { set_val(BUTTON_8, 100.0); } }