Comments (15)
hi,
given the square-ish shape it looks like cfg.offset_rotation = 1
(or another value up to 3) is needed for the panel config
hscync/vsync values seem to need adjustment too, but first fix the rotation
from lovyangfx.
Thank you for your advice, but setting cfg.offset_rotation
from 0-3 still doesn't work.
...
cfg.offset_x = 0;
cfg.offset_y = 0;
cfg.offset_rotation = 0; // <- I've tried entering values ββfrom 0-3, but still doesn't work!
If you need information about this display and other information, It's already on top.
What should I do next?
from lovyangfx.
but still doesn't work!
this is an issue tracker, not a customer service, the quality of the support you get is as good as the feedback you give
from lovyangfx.
Here is a picture of the results I got.
cfg.offset_rotation = 0
cfg.offset_rotation = 1
cfg.offset_rotation = 2
cfg.offset_rotation = 3
from lovyangfx.
thanks,
offset rotation 1 and 3 don't show the cropped square, so there's progress, I suggest you keep cfg.offset_rotation=1
for the meantime
I don't read Chinese and can't make much of the datasheet but it also looks like hsync*/vsync* values need to be adjusted with values provided by the vendor:
cfg.hsync_front_porch = 20;//10;
cfg.hsync_pulse_width = 1;//8;
cfg.hsync_back_porch = 42;//50;
cfg.vsync_front_porch = 4;//10;
cfg.vsync_pulse_width = 10;//8;
cfg.vsync_back_porch = 12;//20;
https://drive.google.com/file/d/1A29h3aU8qUe2CzuJNajd-pa8o6-KBBN1/view?usp=sharing <-- Sample code from seller
unfortunately the google drive zip file is invalid and/or infected and I can't compare your values with the recommended settings
error: invalid zip file with overlapped components (possible zip bomb)
To unzip the file anyway, rerun the command with UNZIP_DISABLE_ZIPBOMB_DETECTION=TRUE environmnent variable
- did you manage to unzip the zip archive?
- does the sample code work with your display?
if the answer is yes to both questions please share the code of that sample ( try https://gist.new ) so we can compare the configurations
from lovyangfx.
unfortunately the google drive zip file is invalid and/or infected and I can't compare your values with the recommended settings
I edited the file (on the original link) so I expect you should be able to open it normally.
did you manage to unzip the zip archive?
Yes, I unzip the zip archive and I have access to all the files normally.
does the sample code work with your display?
I have not yet tried out the code I received. Because the example the seller sent me has the project format used in ESP-IDF (the seller said there is no example code for Arduino IDE) and now I am developing my project on Arduino IDE(ArduinoESP32 V2 .0.17) only
from lovyangfx.
esp-idf calls this variant LCD_5r0_480x854, so you can try to invert the height/width values
cfg.memory_width = 480
cfg.memory_height = 854;
cfg.panel_width = 480;
cfg.panel_height = 854;
you may have to adjust cfg.offset_rotation
again during your tests though
from lovyangfx.
esp-idf calls this variant LCD_5r0_480x854, so you can try to invert the height/width values
The results look much better than before! And this is an illustration.
cfg.offset_rotation = 0
cfg.offset_rotation = 1
cfg.offset_rotation = 2
cfg.offset_rotation = 3
from lovyangfx.
could it be that pin_vsync and pin_hsync need to inverted too?
cfg.pin_vsync = 17;
cfg.pin_hsync = 47;
from lovyangfx.
could it be that pin_vsync and pin_hsync need to inverted too?
I tested it and the result was that nothing was displayed on the screen and everything was black.
Could the incorrect display of the display be related to the ST7701s init command?
I noticed that this display has SPI+RGB communication.
from lovyangfx.
init commands sequences are hardcoded for this panel, but there is another variant of Panel_ST7701
that you may want to try: Panel_ST7701_guition_esp32_4848S040
from lovyangfx.
that you may want to try:
Panel_ST7701_guition_esp32_4848S040
from lovyangfx.
colors can be adjusted with cfg.invert
and cfg.rgb_order
(both booleans) options
that deinterlacing effect is similar to what you had with the Panel_ST7701
with cfg.offset_rotation = 2
so the init sequence is probably not the cause and I'm out of ideas
from lovyangfx.
This issue 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 lovyangfx.
Related Issues (20)
- Support for MakerFab 2.1 inch round MaTouch ESP32-S3 based controller HOT 3
- LilyGo AMOLED Series HOT 1
- Expose XPT2046 ability to measure VBAT HOT 4
- Endianness Inconsistency HOT 2
- Failing to build after updating platformio HOT 2
- Help me , ST7735S cannot drive 80*160 screen normally
- Color Inversion Not Working Correctly with ST7789 Display. HOT 2
- build error with cross-compiler when using SDL2 HOT 6
- Add M5Stack_Fire HOT 1
- Support for ESP32-S3-Box v3 HOT 35
- Screen tearing when using a Makerfabs Matouch 4.0" 480x480 parallel LCD screen HOT 7
- ST7789 cannot get it to work HOT 3
- tft.getTouch(&touchX, &touchY); freeze loop() HOT 2
- Support for 4.3" RGB Interface HOT 2
- Shimering effect with SSD1963 HOT 15
- Define Panels with multiple Touch input device HOT 4
- Support for panel-controlled backlights
- Add smooth arc function HOT 4
- RA8875 with Adafruit Display does not work HOT 1
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 lovyangfx.