Git Product home page Git Product logo

Comments (6)

sukesh-ak avatar sukesh-ak commented on May 29, 2024

Hi. I want to set default orientation as landscape. I tried to change conf_WT32SCO1.h (width and height in defines) and helper_display.hpp (lcd.setRotation(3 instead of 2) ). Orientation changes but display width crops by 320 pixels. I using WT32-SC01. How can i change display orientation?

Display default orientation is setup here. Try changing and see if it works for your requirements

lcd.setRotation(2);

from esp32-tux.

THE-KONDRAT avatar THE-KONDRAT commented on May 29, 2024

With lcd.setRotation(2) display orientation is portrait.
20231027_184529

With lcd.setRotation(1) display orientation is landscape but with black area on the right.
20231027_185728

If i rotate display (with lcd.setRotation(2)) from ui it works.
How can i fix that?

from esp32-tux.

sukesh-ak avatar sukesh-ak commented on May 29, 2024

With lcd.setRotation(2) display orientation is portrait. 20231027_184529

With lcd.setRotation(1) display orientation is landscape but with black area on the right. 20231027_185728

If i rotate display (with lcd.setRotation(2)) from ui it works. How can i fix that?

Background image needs to be changed to cover the side.
Guess you figured that out yourself.

from esp32-tux.

THE-KONDRAT avatar THE-KONDRAT commented on May 29, 2024

Ok. I temporary disabled background image, but the black area still exists. Looks like the image width is 320 pix instead of 480.

from esp32-tux.

THE-KONDRAT avatar THE-KONDRAT commented on May 29, 2024

It works.
I changed the width and height in helper and set rotation 1 instead of 3. And i set sw_rotate=0.
But it doesn't look right. Is there another way to rotate the picture?

from esp32-tux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.