---+ 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 -- %USERSIG{UliRaich - 2021-01-29}% ---++ Comments %COMMENT%
This topic: IoT_Course_English
>
WebHome
>
TheT-watch2020Hardware
>
St7789_lvglDisplayDriver
Topic revision: r1 - 2021-01-29 - UliRaich
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback