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

void lv_draw_eve_pre_upload_image(lv_display_t *disp, const void *src)

Upload an image src to RAM_G now instead of as-needed during rendering.

Parameters:
  • disp – pointer to the lv_draw_eve display

  • src – image src. The value passed to lv_image_set_src

void lv_draw_eve_pre_upload_font_range(lv_display_t *disp, const lv_font_t *font, uint32_t unicode_range_start, uint32_t unicode_range_end)

Upload font glyphs to RAM_G now instead of as-needed during rendering. Upload all the glyphs in the range of unicode code points (inclusive of the start and end values). It can be called multiple times with different ranges.

Parameters:
  • disp – pointer to the lv_draw_eve display

  • font – the font to upload glyphs from

  • unicode_range_start – the first unicode code point in the range of glyphs to upload

  • unicode_range_end – the last unicode code point (inclusive) in the range of glyphs to upload

void lv_draw_eve_pre_upload_font_text(lv_display_t *disp, const lv_font_t *font, const char *text)

Upload font glyphs to RAM_G now instead of as-needed during rendering. It will upload all the glyphs needed to render the string text. It can be called multiple times with different strings.

Parameters:
  • disp – pointer to the lv_draw_eve display

  • font – the font to upload glyphs from

  • text – the ASCII or UTF-8 string that will be iterated for glyphs to upload

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