M5Stack Core2 V1.1 Display Problem
- cicciocb
- Site Admin
- Posts: 2083
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 447 times
- Been thanked: 1371 times
- Contact:
Re: M5Stack Core2 V1.1 Display Problem
this is the H/W pin and should be 0 when you touch the screen
This should be responsive .....
This should be responsive .....
- cicciocb
- Site Admin
- Posts: 2083
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 447 times
- Been thanked: 1371 times
- Contact:
Re: M5Stack Core2 V1.1 Display Problem
I'm uploading again, I did a little fix .... maybe is the good one.
Try this one (save 1.52.9)
Try this one (save 1.52.9)
Re: M5Stack Core2 V1.1 Display Problem
no, there are only sporatic zero's believe me, wen i hold my finger on the display
- cicciocb
- Site Admin
- Posts: 2083
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 447 times
- Been thanked: 1371 times
- Contact:
Re: M5Stack Core2 V1.1 Display Problem
You should try this :
If this don't work, maybe you must power off / on the module
Code: [Local Link Removed for Guests]
'test 2
do
touch.read
print pin(39)
loop
Re: M5Stack Core2 V1.1 Display Problem
the update-time is 21:50 ... is this the last?
[Local Link Removed for Guests]
[Local Link Removed for Guests]
You do not have the required permissions to view the files attached to this post.
- cicciocb
- Site Admin
- Posts: 2083
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 447 times
- Been thanked: 1371 times
- Contact:
Re: M5Stack Core2 V1.1 Display Problem
Yes. You have the wrong time, probably the GMT (-2 Hours)
You do not have the required permissions to view the files attached to this post.
Re: M5Stack Core2 V1.1 Display Problem
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]
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.
- cicciocb
- Site Admin
- Posts: 2083
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 447 times
- Been thanked: 1371 times
- Contact:
Re: M5Stack Core2 V1.1 Display Problem
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
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
Re: M5Stack Core2 V1.1 Display Problem
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
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