LittleVGL drivers for Adafruit 480x320 featherwing and web browser

danjulio
Posts: 15
Joined: Tue Feb 25, 2020 9:00 pm

LittleVGL drivers for Adafruit 480x320 featherwing and web browser

Postby danjulio » Tue Feb 25, 2020 9:39 pm

I've written a pair of LittleVGL (https://littlevgl.com/) drivers, one for the Adafruit 480x320 pixel FeatherWing (HX8357 LCD driver and STMPE610 resistive touch), and the other using websockets to display in a web browser. They are available for people to use or modify without warranty, etc.

Code for the Adafruit board can be found at https://github.com/danjulio/lv_port_esp32.

Code for the websocket driver can be found at https://github.com/danjulio/lv_port_esp32_web.

The websocket driver is still a work in progress. It's a bit heavy, and slow if your GUI forces LittleVGL to redraw a lot of the screen all the time, but it works well for updating simple controls, etc. It could be a good way to use the same code to display on either a LCD or web browser (with security caveats).

Both should work with any ESP32 module. The Adafruit featherwing uses SPI and needs two CS pins along with Reset and the LCD D/C pin. The websocket driver uses a bit of memory so you may have to think about things like buffer sizes, etc when setting display resolution and screen size.
Attachments
esp32_lvgl_web.png
LittleVGL on the browser
esp32_lvgl_web.png (1.13 MiB) Viewed 8954 times
sparkfun_adafruit.png
LittleVGL on the Adafruit Featherwing
sparkfun_adafruit.png (1.24 MiB) Viewed 8954 times

Who is online

Users browsing this forum: No registered users and 23 guests