lv_draw_eve_display.h

Functions

lv_display_t *lv_draw_eve_display_create(const lv_draw_eve_parameters_t *params, lv_draw_eve_operation_cb_t op_cb, void *user_data)

Create a display for the EVE draw unit.

Parameters:
  • params – Pointer to a struct of display parameters. Can be a temporary variable

  • op_cb – A callback that will be called to perform pin and SPI IO operations with the EVE chip

  • user_data – use lv_draw_eve_display_get_user_data to get this pointer inside the op_cb

Returns:

the EVE display

void *lv_draw_eve_display_get_user_data(lv_display_t *disp)

Get the user_data parameter that was passed to lv_draw_eve_display_create. Useful in the operation callback.

Parameters:

disp – pointer to the lv_draw_eve display

Returns:

the user_data pointer

lv_indev_t *lv_draw_eve_touch_create(lv_display_t *disp)

Create a touchscreen indev for the EVE display.

Parameters:

disp – pointer to the lv_draw_eve display

Returns:

the EVE touchscreen indev

uint8_t lv_draw_eve_memread8(lv_display_t *disp, uint32_t address)

Call EVE_memRead8 for custom low-level control of the display.

Parameters:
  • disp – the display returned by lv_draw_eve_display_create

  • address – the EVE address to read from

Returns:

the read value

uint16_t lv_draw_eve_memread16(lv_display_t *disp, uint32_t address)

Call EVE_memRead16 for custom low-level control of the display.

Parameters:
  • disp – the display returned by lv_draw_eve_display_create

  • address – the EVE address to read from

Returns:

the read value

uint32_t lv_draw_eve_memread32(lv_display_t *disp, uint32_t address)

Call EVE_memRead32 for custom low-level control of the display.

Parameters:
  • disp – the display returned by lv_draw_eve_display_create

  • address – the EVE address to read from

Returns:

the read value

void lv_draw_eve_memwrite8(lv_display_t *disp, uint32_t address, uint8_t data)

Call EVE_memWrite8 for custom low-level control of the display.

Parameters:
  • disp – the display returned by lv_draw_eve_display_create

  • address – the EVE address to write to

  • data – the value to write

void lv_draw_eve_memwrite16(lv_display_t *disp, uint32_t address, uint16_t data)

Call EVE_memWrite16 for custom low-level control of the display.

Parameters:
  • disp – the display returned by lv_draw_eve_display_create

  • address – the EVE address to write to

  • data – the value to write

void lv_draw_eve_memwrite32(lv_display_t *disp, uint32_t address, uint32_t data)

Call EVE_memWrite32 for custom low-level control of the display.

Parameters:
  • disp – the display returned by lv_draw_eve_display_create

  • address – the EVE address to write to

  • data – the value to write