M5Stack Core2 V1.1 Display Problem

Recurrent H/W and software problems
Post Reply
User avatar
cicciocb
Site Admin
Posts: 2078
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 444 times
Been thanked: 1368 times
Contact:

Re: M5Stack Core2 V1.1 Display Problem

Post by cicciocb »

this is the H/W pin and should be 0 when you touch the screen
This should be responsive .....
User avatar
cicciocb
Site Admin
Posts: 2078
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 444 times
Been thanked: 1368 times
Contact:

Re: M5Stack Core2 V1.1 Display Problem

Post by cicciocb »

I'm uploading again, I did a little fix .... maybe is the good one.

Try this one (save 1.52.9)
coolj
Posts: 70
Joined: Mon Nov 08, 2021 11:31 am
Has thanked: 1 time
Been thanked: 13 times

Re: M5Stack Core2 V1.1 Display Problem

Post by coolj »

no, there are only sporatic zero's believe me, wen i hold my finger on the display
User avatar
cicciocb
Site Admin
Posts: 2078
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 444 times
Been thanked: 1368 times
Contact:

Re: M5Stack Core2 V1.1 Display Problem

Post by cicciocb »

You should try this :

Code: [Local Link Removed for Guests]

'test 2
do
touch.read
print pin(39)
loop
If this don't work, maybe you must power off / on the module
coolj
Posts: 70
Joined: Mon Nov 08, 2021 11:31 am
Has thanked: 1 time
Been thanked: 13 times

Re: M5Stack Core2 V1.1 Display Problem

Post by coolj »

the update-time is 21:50 ... is this the last?

[Local Link Removed for Guests]
You do not have the required permissions to view the files attached to this post.
User avatar
cicciocb
Site Admin
Posts: 2078
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 444 times
Been thanked: 1368 times
Contact:

Re: M5Stack Core2 V1.1 Display Problem

Post by cicciocb »

Yes. You have the wrong time, probably the GMT (-2 Hours)
image.png
You do not have the required permissions to view the files attached to this post.
coolj
Posts: 70
Joined: Mon Nov 08, 2021 11:31 am
Has thanked: 1 time
Been thanked: 13 times

Re: M5Stack Core2 V1.1 Display Problem

Post by coolj »

the same ... always 1 with sporadic 0 even wenn i leave my finger on the display.

i catched one zero for you 😉😁

[Local Link Removed for Guests]
You do not have the required permissions to view the files attached to this post.
User avatar
cicciocb
Site Admin
Posts: 2078
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 444 times
Been thanked: 1368 times
Contact:

Re: M5Stack Core2 V1.1 Display Problem

Post by cicciocb »

Very strange, this is an H/W pin, it should work all the time.

Maybe the controller require an initial setup but now is too late.

My bed is calling me. Tomorrow is a working day for me.

Have a good night
coolj
Posts: 70
Joined: Mon Nov 08, 2021 11:31 am
Has thanked: 1 time
Been thanked: 13 times

Re: M5Stack Core2 V1.1 Display Problem

Post by coolj »

for me also, have a good night

and thanks a lot
coolj
Posts: 70
Joined: Mon Nov 08, 2021 11:31 am
Has thanked: 1 time
Been thanked: 13 times

Re: M5Stack Core2 V1.1 Display Problem

Post by coolj »

my last test😁
this code works ...if i leave my finger on the display the wlog always printed the position.
If i removed my finger, the wlog stays still.


'touch_test
I2C.SETUP 21, 22 ' set I2C port on pins 21 and 22

wlog "Startup"

init:

touch_int = 39: pin.mode touch_int,input,pullup: interrupt touch_int, touchi
touch_x=0: touch_y=0

tft.fill black

do

loop

wait

sub FT6336U_read(touch_x,touch_y)
i2c.read_iobuff(0), 56, 5, 2 'use the IO Buffer 0 for reading
if iobuff.len(0) = 0 then
wlog "No communication"
touch_y = 0
else
touch_y = (iobuff.read(0, 0) and 15) << 8 + iobuff.read(0, 1)
end if

i2c.read_iobuff(0), 56, 3, 2
if iobuff.len(0) = 0 then
wlog "No communication"
touch_x = 0
else
touch_x = (iobuff.read(0, 0) and 15) << 8 + iobuff.read(0, 1)
end if
end sub

touchi:
FT6336U_read touch_x,touch_y
wlog "touch:", touch_x,touch_y
TFT.CIRCLE touch_x, touch_y, 5, blue,1
return
Post Reply