Difference: St7789_lvglDisplayDriver ( vs. 1)

Revision 12021-01-29 - UliRaich

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="TheT-watch2020Hardware"

The st7789_lvgl display driver

The display driver for the t-watch is extremely simple. It provides a frame buffer for lvgl to draw into and it has a flush method to copy the frame buffer to the device. The driver is written in C and uses gen_mpy.py from lv_bindings to generate the MicroPython binding automatically.

Its methods are:

  • init(): initializes the st7789 display controller
  • enable_backlight(on_off): enables of disable the LCD backlight
  • flush(): writes the frame buffer to the device
  • send_cmd(cmd): write a command to the st7789
  • send_data(data): send data to the st7789
  • set_orientation(orientation): where orientation can be:
    • PORTRAIT
    • PORTRAIT_INVERTED
    • LANDSCAPE
    • LANDSCAPE_INVERTED
-- Uli Raich - 2021-01-29

Comments

<--/commentPlugin-->
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback