Git Product home page Git Product logo

Comments (5)

G6EJD avatar G6EJD commented on June 11, 2024

Have you rotated your screen? Normal orientation is portrait, if so swap you touch x and y around

from esp8266-weather-station-color.

romain3w avatar romain3w commented on June 11, 2024

Screen is not rotated. I took the .ino and only change the wifi parameters !

EDIT: to be more precise : origin point are in the right bottom corner and the x:240 and y:320 are in the top left ...

from esp8266-weather-station-color.

romain3w avatar romain3w commented on June 11, 2024

Can be fix replacing in TouchControllerWS.cpp :
int x = (p.y - ax) * dx;
int y = 320- (p.x - ay) * dy;

BY :
int x = 240 - (p.y - ax) * dx;
int y = (p.x - ay) * dy;

from esp8266-weather-station-color.

WrQth avatar WrQth commented on June 11, 2024

I'm having trouble with touchscreen calibration as well though I have rotated the screen with gfx.setRotation(1). Is there something in TouchControllerWS.cpp that needs to change match the new orientation?

from esp8266-weather-station-color.

marcelstoer avatar marcelstoer commented on June 11, 2024

origin point are in the right bottom corner and the x:240 and y:320 are in the top left ...

I cannot reproduce this. Note that the assumed orientation is portrait with the pin row at the bottom as seen here: https://thingpulse.com/product/esp8266-wifi-color-display-kit-2-4/

from esp8266-weather-station-color.

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.