Skip to main content

lv_timer_create

Function lv_timer_create 

Source
pub unsafe extern "C" fn lv_timer_create(
    timer_xcb: lv_timer_cb_t,
    period: u32,
    user_data: *mut c_void,
) -> *mut lv_timer_t
Expand description

Create a new lv_timer @param timer_xcb a callback to call periodically. (the ‘x’ in the argument name indicates that it’s not a fully generic function because it not follows the func_name(object, callback, ...) convention) @param period call period in ms unit @param user_data custom parameter @return pointer to the new timer