Motion (gfx_motion)

Types

gfx_motion_tick_cb_t

typedef bool (*gfx_motion_tick_cb_t)(gfx_motion_t *motion, void *user_data);

gfx_motion_apply_cb_t

typedef esp_err_t (*gfx_motion_apply_cb_t)(gfx_motion_t *motion, void *user_data, bool force_apply);

Functions

gfx_motion_step()

esp_err_t gfx_motion_step(gfx_motion_t *motion, bool force_apply);

gfx_motion_ease_i16()

int16_t gfx_motion_ease_i16(int16_t cur, int16_t tgt, int16_t div);