lv_test_helpers.h

Defines

LV_HEAP_CHECK(x)
LV_TEST_WIDTH_TO_STRIDE(w, px_size)

Functions

void lv_test_wait(uint32_t ms)

Emulate a delay. It's not real delay, but it tricks LVGL to think that the required time has been elapsed. lv_timer_handler is called after each millisecond, meaning all the events will be fired inside this function. At the end the animations and display will be also updated.

Parameters:

ms – the number of milliseconds to pass

void lv_test_fast_forward(uint32_t ms)

Emulates some time passing. Update the animations and the display only once at the end.

Parameters:

ms – the number of milliseconds to pass

static inline size_t lv_test_get_free_mem(void)