M5Stack Core2 V1.1 Display Problem
- cicciocb
- Site Admin
- Posts: 2080
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 445 times
- Been thanked: 1369 times
- Contact:
Re: M5Stack Core2 V1.1 Display Problem
And this is correct ?
In landscape I should expect
x = 0, y = 0 on the top left and x = 319, y = 239 on the bottom right
edit :
Does X and Y moves correctly or are reversed ?
In landscape I should expect
x = 0, y = 0 on the top left and x = 319, y = 239 on the bottom right
edit :
Does X and Y moves correctly or are reversed ?
- cicciocb
- Site Admin
- Posts: 2080
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 445 times
- Been thanked: 1369 times
- Contact:
Re: M5Stack Core2 V1.1 Display Problem
I suppose that the coordinates are reversed.
I need to know it before making the change
NO, the calibration is not required (and not available)
I need to know it before making the change
NO, the calibration is not required (and not available)
Re: M5Stack Core2 V1.1 Display Problem
'test 2
tft.fill orange
TFT.TEXT.FONT 4
TFT.TEXT.SIZE 1
TFT.TEXT.COLOR black, orange
TFT.TEXT.POS 10, 10
TFT.Print "...Startup"
TFT.TEXT.COLOR black, orange
do
touch.read
TFT.TEXT.POS 10, 30
TFT.Print "Touch X="+str$(touch.x)+" Y="+str$(touch.y)+" "
TFT.CIRCLE touch.x, touch.y, 5, blue,1
loop
tft.fill orange
TFT.TEXT.FONT 4
TFT.TEXT.SIZE 1
TFT.TEXT.COLOR black, orange
TFT.TEXT.POS 10, 10
TFT.Print "...Startup"
TFT.TEXT.COLOR black, orange
do
touch.read
TFT.TEXT.POS 10, 30
TFT.Print "Touch X="+str$(touch.x)+" Y="+str$(touch.y)+" "
TFT.CIRCLE touch.x, touch.y, 5, blue,1
loop
- cicciocb
- Site Admin
- Posts: 2080
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 445 times
- Been thanked: 1369 times
- Contact:
Re: M5Stack Core2 V1.1 Display Problem
Yes but I still miss an answer. Does X and Y are reversed or not ?
Re: M5Stack Core2 V1.1 Display Problem
you have to swap x and y first
and maybe there is a offset because on the right side i have -75
and maybe there is a offset because on the right side i have -75
- cicciocb
- Site Admin
- Posts: 2080
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 445 times
- Been thanked: 1369 times
- Contact:
Re: M5Stack Core2 V1.1 Display Problem
You do not have the required permissions to view the files attached to this post.