Site Tools
Sidebar
User's Manual
t2:set_val
set_val
set_val — Set I/O value
Description
void set_val(uint8 io, fix32 value);
void set_val(uint8 io, int32 value);
Set the I/O value indexed by io to value.
Parameters
- io: Index of an I/O value.
- value: The new value to set.
Return Value
No value is returned.
Examples
Example #1 set_val() example
main { // set_val can accept fix32 ... set_val(STICK_2_X, 90.0); // ... and integer types. set_val(STICK_2_Y, 90); }
See Also
t2/set_val.txt · Last modified: 2016/11/18 05:04 by J2Kbr