get_val — Get I/O value
fix32 get_val(uint8 io);
Get the I/O value indexed by io.
An I/O value is initialized with the current state value of the input element to it mapped. |
If an I/O value was programmatically set by set_val() , get_val() will return the value programmatically set. |
The current I/O value.
main { if(get_val(BUTTON_5) >= 75.5) { set_val(BUTTON_5, 100.0); } }