Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : ILI9341 test with Micomite+
Author | Message | ||||
CFLY Regular Member Joined: 20/05/2015 Location: FrancePosts: 41 |
Hello Geoff, I have a screen 2.4", I test it with the version MMBasic V4.7 B21. Concerning display, no problems. Concerning Touch panel ... ok ... but with this program : ' option lcdpanel ili9341,L,27,28,22 ' option touch 14,21 cls rgb(black) color rgb(white),rgb(black) GUI INTERRUPT GuiDown, GuiUp GUI DELETE all font 1,1 GUI CAPTION 1, "GUI Test", MM.HRes/2, 0, ct GUI FRAME 40, "State", 10, 115, 140, 120 GUI RADIO 9, "Show", 20, 125,30 CtrlVal(9) = 1 GUI RADIO 10, "Dis", 20, 155 GUI RADIO 11, "Hide", 20, 185 GUI NUMBERBOX 45, 10, 15, 90, 30 GUI TEXTBOX 46, 120, 15, 200, 30 GUI SPINBOX 48, 220, 85, 100, 30, RGB(cyan), RGB(black), 1, -20, 20 CtrlVal(45) = 123.4 CtrlVal(46) = "touch me" Do : Loop ' sit in a loop doing nothing (your program goes here) GuiDown: Select Case Touch(ref) Case 9 GUI restore all Case 10 GUI disable all GUI restore 9 Case 11 GUI hide all GUI restore 9 End Select IReturn GuiUp: IReturn It can have cases there where one can find yourself blocked if we do not make a clear selection... For example : https://youtu.be/aJXCHD8R58g |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3165 |
I wonder what went wrong. It might have been that your touch was very fast. I will investigate. Thanks for the video, that makes it easy to see the problem. Geoff Geoff Graham - http://geoffg.net |
||||
Print this page |