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: 1370 times
- Contact:
Re: M5Stack Core2 V1.1 Display Problem
this is my config:
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: 1370 times
- Contact:
Re: M5Stack Core2 V1.1 Display Problem
MISO should be 38 but you are not using the SDCARD so don't care for you
Re: M5Stack Core2 V1.1 Display Problem
Did you changed something on highlighting the code in the editor at this annex version?
Because most of the code is black!
Because most of the code is black!
- cicciocb
- Site Admin
- Posts: 2083
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 447 times
- Been thanked: 1370 times
- Contact:
- cicciocb
- Site Admin
- Posts: 2083
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 447 times
- Been thanked: 1370 times
- Contact:
Re: M5Stack Core2 V1.1 Display Problem
I've just posted the version 1.52.9
Select the version in the config menu 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.
Select the version in the config menu 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.
You do not have the required permissions to view the files attached to this post.
Re: M5Stack Core2 V1.1 Display Problem
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
'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