t2:get_prev

get_prev


get_prev — Get previous I/O value

Description


fix32 get_prev(uint8 io);

Get the previous I/O value indexed by io.

Parameters


  • io: Index of an I/O value.

Return Value


The previous I/O value.

Examples


Example #1 get_prev() example

main {
    if(get_prev(BUTTON_5) == 0.0 && get_actual(BUTTON_5) > 0.0) {
        set_val(BUTTON_5, 0.0);
    }
}

See Also

t2/get_prev.txt · Last modified: 2016/11/18 05:32 by J2Kbr