ThingPulse / esp8266-weather-station-color

ESP8266 Weather Station in Color using ILI9341 TFT 240x320 display
https://thingpulse.com/product/esp8266-wifi-color-display-kit-2-4/
MIT License
569 stars 222 forks source link

Landscape mode #156

Closed teargas666 closed 2 years ago

teargas666 commented 2 years ago

Hi. I have a problem with my station. I've already flash it and connect it with wires but my screen is rotated to landscape mode as it is on the image... image

TiVoHomeUser commented 2 years ago

What wiring diagram did you follow?

teargas666 commented 2 years ago

I've used the wiring diagram from that video

https://youtu.be/eTIrP0__aGU

It's shown on 5:03

Ok, I've changed the wiring for the mentioned on the tutorial, but there is not change at all... I've also flashed the ESP once again and nothing new... screen is still rotated...

TiVoHomeUser commented 2 years ago

Suggest you re-install Mini Grafx by ThingPulse Library

teargas666 commented 2 years ago

I've reinstall it in Arduino on Windows and MacOS... no change...

marcelstoer commented 2 years ago

Assuming the wiring is the same as what we document at https://docs.thingpulse.com/specs/wifi-color-display-kit/#wiring then it must be something else. However, from what we see in your image the 90° appears to be the least of your problems no? If you can't get a clear image then it doesn't matter what the rotation is. Maybe that display module is toast.

In any case, it's not a software issue -> closing

teargas666 commented 2 years ago

Its just a photo from the phone, and it was not focused properly. I have a clear image, but just rotated...

I've tried to change some code in the .ino file, and i can flip the screen horizontally and vertically... I still think its the software problem. Mayby I have to downgrade the Mini Grafx library...

TiVoHomeUser commented 2 years ago

I had the previous version 1.2.5 of the Mini Grafx library installed I updated to 1.2.6 and still could not reproduce you're issue I programed with the "Erase all flash content" for a clean install.

It probably is a bad display you could try adding gfx.setRotation(0); after gfx.init(); in the setup() function.

gfx.init(); gfx.setRotation(0); _gfx.fillBuffer(MINIBLACK);

I rotated my screen with setRotation(3) and this is what Landscape mode would look like. IMG_3089 Notice the lack of the noise on the right. Another indication that the screen is damaged is that you only see the "Now release screen" message while the screen is being pressed removing you're finger the screen quickly changes to the "Please calibrate" message.

teargas666 commented 2 years ago

I cannot move to the calibration. I think I have to use the another screen. I use the setRotation(3) to receive the proper orientation

marcelstoer commented 2 years ago

I think I have to use the another screen

Apart from the starter kit this project was designed for we are also selling its display module separately.

vicwhexagon commented 2 years ago

I recommend the kit it eliminates the wires and mine came with a genuine Wemos D1 Mini. IWhere did you're screen come from?

teargas666 commented 2 years ago

i've ordered another one screen and there is no change at all... it's not a hardware problem - it's problem with the code... where I can put my code to check?

vicwhexagon commented 2 years ago

So we are on the same page which "screen" Did you get? If you made some changes to the esp8266-weather-station-color code you could create a fork of the code then and post your changes there.

G6EJD commented 2 years ago

Have you tried the Arduino example touch screen sketches to prove the screen and touch panel is working?

TiVoHomeUser commented 2 years ago
teargas666 commented 2 years ago

There was just added the gfx.setRotation(0-3) - I've tried all of these possibilities.

When I made first try I was able to boot to the weather screen but without the touchscreen (Arduino IDE gave me a lot of errors) but the screen was rotated. After couple hours of flashing two or three ESP8266 I was not able to back to that screen.

I've ordered one on the Shopee and second one on the Polish marketplace Allegro.

TiVoHomeUser commented 2 years ago

There are a few on the site was it the 320 X 240 or 480 X 320 or some other? This program uses the 320 X 240 display Do you have a link to yours?

teargas666 commented 2 years ago

This is following link https://shopee.pl/product/584766164/13553437087?smtt=0.756037666-1656136129.9

brianmiller1956 commented 2 years ago

Just an observation, this display as pictured does not have the touch controller fitted, It is not the correct display.

Sent from my iPad Pro

On 25 Jun 2022, at 06:49, teargas666 @.***> wrote:

 This is following link https://shopee.pl/product/584766164/13553437087?smtt=0.756037666-1656136129.9

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

teargas666 commented 2 years ago

Yeah, there is not soldered touch controller but it's not a main issue...