Comments (10)
I made corrections to the void ili9488_init (void) function in the ili9488.с file, {ILI9488_CMD_MEMORY_ACCESS_CONTROL, {(0x20 | 0x08)}, 1}
I changed it to
{ILI9488_CMD_MEMORY_ACCESS_CONTROL, {0x48}, 1},
I think you can add this option to menuconfig
from lv_port_esp32.
Hi @Djaison,
Can you try swapping the values on this config?
If that doesn't work i can add an option to the menuconfig as you've suggested.
Offtopic: Your interface looks really cool :)
from lv_port_esp32.
If that doesn't work i can add an option to the menuconfig as you've suggested.
it does not work :)
now it looks like this
from lv_port_esp32.
Ok, I will try to add an option to set the display on portrait mode from the menuconfig, but it will be later today.
from lv_port_esp32.
It would be good to add this option for the ILI9341, too. I just worked on this today and found that for the M5Stack Fire in the file externals\lv_port_esp32\components\lvgl_esp32_drivers\lvgl_tft\ili9341.c
writing 0x08 (instead of 0x68) to 0x36 worked for me. With this the display shows in landscape, with the buttons on the bottom. I used this code:
#if ILI9341_INVERT_DISPLAY
uint8_t data[] = {0x08};
// this same command also sets rotation (portrait/landscape) and inverts colors.
// https://gist.github.com/motters/38a26a66020f674b6389063932048e4c#file-ili9844_defines-h-L24
ili9341_send_cmd(0x36);
ili9341_send_data(&data, 1);
#endif
Value taken from ILI9341 datasheet, section 8.2.29. Memory Access Control (36h). Also height and width must be swapped, too. I did it like this in file externals\lv_port_esp32\components\lvgl\lv_conf.h
#define LV_HOR_RES_MAX (CONFIG_LVGL_DISPLAY_HEIGHT)
#define LV_VER_RES_MAX (CONFIG_LVGL_DISPLAY_WIDTH)
from lv_port_esp32.
It would be good to add this option for the ILI9341, too.
Sure, I will add it later today, I'm at work right now.
from lv_port_esp32.
I was able to configure the touch to the portrait orientation should also change the default settings in menuconfig, the operating settings such:
Result ;-)
P.S. Touch driver is a FT6236
from lv_port_esp32.
It looks really nice :)
I was able to configure the touch to the portrait orientation should also change the default settings in menuconfig, the operating settings such
We can add a note for that on the README, I don't know if it can be done automagically based on the display orientation.
from lv_port_esp32.
it can be added to menuсonfig as a function of the orientation of the display, and later I will be able to provide it after checking
from lv_port_esp32.
This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from lv_port_esp32.
Related Issues (20)
- Cannot build project with LVGL as component HOT 1
- SPI display drivers do not play nice with other spi devices
- esp32-s3 invalid dma channel HOT 1
- Portrait mode of demos doesn't display correctly
- The link to the forum when you write a PR/issue is incorrect HOT 1
- build with esp-idf-4.4.3 fails HOT 1
- failed to run idf.py menuconfig HOT 3
- updated LVGL+squareline studio+ ESP32 HOT 2
- Demo on older esp-wrover-kit board ( not v4.1) HOT 2
- Display not showing the correct windows while running this example HOT 2
- Sunton ESP32-8048S070 board HOT 8
- How can I add my own components to the project
- Unable to compile on esp-idf version 5.0 HOT 4
- undefined reference to `lv_obj_set_scroll_propagation'
- Cant turn off LV_USE_FLEX
- Horizontal scrolling HOT 4
- fatal error: Arduino_H7_Video.h: No such file or directory
- ESP32C3 - non-LVGL task (temp reading) causes TFT display to go blank and stay blank on second run of task HOT 1
- ssd1306 driver
- ssd1306
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lv_port_esp32.