-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LVGL 8.3.7 & ESP-IDF 5.2 #222
Comments
Ok.. so I got my SSD1306 OLED display working again... See https://github.com/hiruna/lv_port_esp32/tree/develop/lvgl_8.3.7_idf_5.2 for the
Added https://github.com/hiruna/lv_port_esp32/blob/develop/lvgl_8.3.7_idf_5.2/sdkconfig.ssd1306 for reference |
128x128 ST7735 LCD is somewhat working... trying to figure out why the rendering is off the screen bounds 🤔 (what I have : http://www.lcdwiki.com/1.44inch_Arduino_SPI_Module_ST7735S_SKU:MAR1441) |
Tested lvgl benchmark, 128x128 display is obviously too small but good to see it working |
Got my hands on a ILI9341 3.2" 320x240 display w/ touch. (http://www.lcdwiki.com/3.2inch_SPI_Module_ILI9341_SKU:MSP3218) Touch panel was not connected/tested in this test. ESP32 CPU Speed: 240MHz Pins: CLK -> GPIO14
MISO -> GPIO12
MOSI -> GPIO13
LED -> GPIO26
DC -> GPIO27
RST -> GPIO33 sdkconfig used: https://github.com/hiruna/lv_port_esp32/blob/develop/lvgl_8.3.7_idf_5.2/sdkconfig.ili9341 |
My ILI9341 3.2" 320x240 touch panel has a HR2046 instead of a XPT2046 but I configured it as a XPT2046 and it works for me.
|
Tested with Waveshare GC9A01 240x240 round display module sdkconfig: https://github.com/hiruna/lv_port_esp32/blob/develop/lvgl_8.3.7_idf_5.2/sdkconfig.GC9A01 Clock example see: hiruna/lv_port_esp32@e2f588d |
got my self a Freenove esp32s3 (N8R8) and a 1.9inch 170×320 LCD Display Module (ST7789V2) (https://www.waveshare.com/1.9inch-lcd-module.htm) 262K colors are supported by display but LVGL doesnt have the option also had to set spi dma chan to auto (got an error saying chan 1 was not supported by the chip, maybe this is not for everyone ?) - hiruna@f22026c added offsets for the 170x320 display - hiruna@16f9f93 |
Ported https://github.com/jakpaul/lvgl_touch_calibration via my fork at https://github.com/hiruna/lvgl_touch_calibration. PR submitted to @jakpaul with my changes. Updated https://github.com/hiruna/lv_port_esp32/blob/develop/lvgl_8.3.7_idf_5.2/main/main.c to cater for the touch calibration.
Demonstration: lvgl_touch_calibration_demonstration.mp4 |
Tested 320x480px 3.5 inch RPi Display (ILI9486 + XPT2046) |
Tested ESP-IDF versions:
|
Hi Hiruna [edit: just noticed the original is still on lvgl v7x so probably issue there, not here] just a status report I tried this branch grafted onto https://github.com/mhaberler/m5core2_esp-idf_demo.git , modified from ropg using bleeding edge IDF 5.2 this works fine except for the touch controller, which I still have to look into - looks like the FT6X36 is found and properly initialized (see below), but needs some love to actually report ;) I'm primarily interested in M5Stack Core2 and CoreS3 so dabbling with those great job!
ps: complete boot log:
|
Hi @mhaberler , I don't own a M5Stack/(display with FT6X36 touch controller) but if you enable verbose logging via the sdkconfig (since I set touch point reporting to verbose only via 50b212a) [it improves performance when it's not always outputting logs per touch], you should be able to see the full log output. you can set the default log level to debug via the |
If you want a more complete set of drivers for the Core 2, you might want to start here: https://github.com/m5stack/Core2-for-AWS-IoT-Kit/tree/BSP-dev You can turn off features that only exist on the AWS version for the standard Core2 (e.g. secure module and sidebar LEDs) using menuconfig options. Might be a better starting point and I'd love to push that to support IDF 5.2 and the latest LVGL. Happy to review a pull request and merge it into that branch if it works well. |
@rashedtalukder thanks, appreciated! |
@hiruna thanks for this port. I have a ESP32-2432S032C board and it basically works. There was one major blocker: it seems that Also the display orientation seems mirrored and inverted. I'm not sure I got the right fix but changing the |
is this compatible with esp32c3? |
Hi all,
I got IDF v5.2 (master) & LVGL 8.3.7 to compile.
See https://github.com/hiruna/lvgl_esp32_drivers/tree/develop/lvgl_8.3.7_idf_5.2
I only have a SSD1306 128x64 OLED display and a 128x128 ST7735 LCD but focusing on the SSD1306 OLED for now.
Will add a branch for the
lv_port_esp32
soon, the main.c needs some tweaking (Only included changes for the SSD1306 hello world,lv_demo_*
functions will need changes too):static lv_disp_buf_t disp_buf;
->static lv_disp_draw_buf_t disp_buf;
lv_disp_buf_init(&disp_buf, buf1, buf2, size_in_px);
->lv_disp_draw_buf_init(&disp_buf, buf1, buf2, size_in_px);
disp_drv.buffer = &disp_buf;
->disp_drv.draw_buf = &disp_buf;
lv_obj_t * label1 = lv_label_create(scr, NULL);
->lv_obj_t * label1 = lv_label_create(scr);
lv_obj_align(label1, NULL, LV_ALIGN_CENTER, 0, 0);
->lv_obj_align(label1, LV_ALIGN_CENTER, 0, 0);
Compilation & flashing succeeds but my OLED display shows garabge (pixel noise), I'm thinking something's wrong with the i2c_manager ?
Feel free to test this branch out and let me know how it is.
The text was updated successfully, but these errors were encountered: