t2:get_actual

get_actual


get_actual — Get actual I/O value

Description


fix32 get_actual(uint8 io);

Get the original initialized I/O value indexed by io.

An I/O value is initialized with the current state value of the input element to it mapped.
get_actual() will always return the original initialized value, even if set_val() is used to set an new value.

Parameters


  • io: Index of an I/O value.

Return Value


The actual I/O value.

Examples


Example #1 get_actual() example

main {
    set_val(BUTTON_5, 0.0);
    if(get_actual(BUTTON_5) >= 75.5) {
        set_val(BUTTON_5, 100.0);
    }
}

See Also

t2/get_actual.txt · Last modified: 2016/11/18 05:26 by J2Kbr