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 »

What is the LCD that you choose in the config page?
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 »

this is my config:
IMG_9804.jpeg
IMG_9805.jpeg
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 »

MISO should be 38 but you are not using the SDCARD so don't care for you
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 »

ops... you are right👍🤦‍♀️
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 »

Did you changed something on highlighting the code in the editor at this annex version?
Because most of the code is black!
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, use the latest version 1.52.8
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've just posted the version 1.52.9

Select the version in the config menu
image.png
All should be automatically selected (TFT, SDCARD, TOUCH).

I'm not sure about the touch coordinates with the different orientations of the TFT so, please, let's try all the orientations and let me know.

Enjoy. :D
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 »

👍
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 »

o.k. display is working but there is no touch-function
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 »

did you include the interrupt on pin39.

'simple GUI example

'TOUCH.CALIB
gui.init 20, black 'reserve memory for 20 GUI objects. clears screen to black

txt = GUI.Textline(10,50,190,20, "Text Line Here", 2) 'x,y,w,h,text,fontsize
but1 = GUI.Button(20, 200, 100, 20, "BUTTON1",2 ) 'x,y,w,h,text,fontsize
but2 = GUI.Button(20, 250, 100, 20, "BUTTON2",2 ) 'x,y,w,h,text,fontsize

gui.setevent but1, TOUCH, button1click 'set touched event, jump to buttonclick
gui.setevent but2, TOUCH, button2click 'set touched event, jump to buttonclick


'interrupt 39, button1click 'if using M5stack can't click screen- so use left button
gui.autorefresh 30, 1 'display gui items automatically each 30ms including touch
wait

button1click:
gui.settext txt,"Button1 Pressed" 'change text line.
return

button2click:
gui.settext txt,"Button2 Pressed" 'change text line.
return
Post Reply