lv_test_helpers.h
API reference for lv_test_helpers.h
Summary
Functions
lv_test_wait
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.
void lv_test_wait(uint32_t ms)| Name | Type | Description |
|---|---|---|
ms | uint32_t | the number of milliseconds to pass |
lv_test_fast_forward
Emulates some time passing. Update the animations and the display only once at the end.
void lv_test_fast_forward(uint32_t ms)| Name | Type | Description |
|---|---|---|
ms | uint32_t | the number of milliseconds to pass |
Macros
LV_HEAP_CHECK
#define LV_HEAP_CHECK(x) \
do {} while(0)lv_test_get_free_mem
#define lv_test_get_free_mem() \
(65536)LV_TEST_WIDTH_TO_STRIDE
#define LV_TEST_WIDTH_TO_STRIDE(w, px_size) \
((((w) * (px_size) + (LV_DRAW_BUF_STRIDE_ALIGN - 1)) / LV_DRAW_BUF_STRIDE_ALIGN) * LV_DRAW_BUF_STRIDE_ALIGN)Dependencies
How is this guide?
Last updated on