Now we're cooking - HDMI + USB touch


Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11631
Posted: 01:00pm 27 May 2026      



Display  Like this

PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1996
Posted: 01:13pm 27 May 2026      

No freaking WAY!  

Wait, does this mean that a desktop PC monitor with USB touchscreen will work?

I'm all of a dither...need to grab a coffee  

Capacitive    

Peter63
Senior Member

Joined: 28/07/2017
Location: Sweden
Posts: 199
Posted: 01:14pm 27 May 2026      

Nice  

Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9992
Posted: 05:46am 28 May 2026      

Nice one, my son!  
Watching this thread with interest.

Was about to start work on a project using the same 2350B board, but was thinking about using a mouse and keyboard.  Touch might be the way to go!  

matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11631
Posted: 07:55am 28 May 2026      

  Quote  Watching this thread with interest.

Coming soon
Do
 Select Case Touch(SWIPE)
   Case 1 : Print @(0,0) "swipe LEFT     "
   Case 2 : Print @(0,0) "swipe RIGHT    "
   Case 3 : Print @(0,0) "swipe UP       "
   Case 4 : Print @(0,0) "swipe DOWN     "
 End Select
 If Touch(TAP)   Then Print @(0,16) "TAP            "
 If Touch(DTAP)  Then Print @(0,16) "DOUBLE TAP     "
 If Touch(HOLD)  Then Print @(0,16) "LONG PRESS     "
 Select Case Touch(PINCH)
   Case 1 : Print @(0,32) "EXPAND         "
   Case 2 : Print @(0,32) "CONTRACT       "
 End Select
 Select Case Touch(ROTATE)
   Case 1 : Print @(0,48) "ROTATE CW      "
   Case 2 : Print @(0,48) "ROTATE CCW     "
 End Select
 If Touch(TTAP)  Then Print @(0,64) "TWO-FINGER TAP "
 Pause 50
Loop


Edited 2026-05-28 18:04 by matherp

PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1996
Posted: 09:26am 28 May 2026      

Game changer  

Plasmamac

Guru

Joined: 31/01/2019
Location: Germany
Posts: 620
Posted: 11:34am 28 May 2026      

Great Peter

matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11631
Posted: 12:33pm 28 May 2026      

  Quote  Game changer


Just wait  

PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1996
Posted: 12:57pm 28 May 2026      

  Grogster said  Nice one, my son!  
Watching this thread with interest.

Was about to start work on a project using the same 2350B board, but was thinking about using a mouse and keyboard.  Touch might be the way to go!  


I had a giggle about your post that was teasing Pete about never supporting BT. I was gonna reply:

  Quote   Yeah, unfortunately, we'll never, ever, ever have support for capacitive USB touchscreens in MMBasic because it is totally impossible, just will never happen.

(now let's see what happens...I'll check back tomorrow   )


I chickened out and decided not to post  

vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1182
Posted: 04:27pm 28 May 2026      

Very nice! Is the 1024x600 resolution supported natively or is the display up-scaling or re-scaling a different resolution?

matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11631
Posted: 04:50pm 28 May 2026      

  Quote  Is the 1024x600 resolution supported natively

Yes. OPTION RESOLUTION 1024x600
mode 1 1024x600x1-bit
mode 2 256x150x4-bit
mode 3 512x300x4bit
mode 5 256x150x8bit

That was in 6.02.01 but somehow missed the manual

Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9992
Posted: 12:18am 29 May 2026      

  PhenixRising said  I had a giggle about your post that was teasing Pete about never supporting BT. I was gonna reply:

  Quote   Yeah, unfortunately, we'll never, ever, ever have support for capacitive USB touchscreens in MMBasic because it is totally impossible, just will never happen.

(now let's see what happens...I'll check back tomorrow   )


I chickened out and decided not to post  



You know the old saying: Never say never.

It could also simply be that Peter loves a challenge, and if he's not really working on anything else, he starts tinkering with those ideas, not really caring or expecting it to work without LOTS of effort - as he himself says.   The tinkering yields some - perhaps unexpected - success, so that peaks his interest, and away he goes.  

That's my theory on why he's known to state "Thing X will NEVER happen." - then it does!    

Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5992
Posted: 06:33am 29 May 2026      

  Grogster said  That's my theory on why he's known to state "Thing X will NEVER happen." - then it does!    


Should say: "Thing X will NEVER happen." - UNTIL it does!
Famous quote from the designers of the Titanic..

Volhout

P.S. When Peter started out porting MMBasic to Pico, there was not a lot of code written for Pico. So every new feature had the be hand coded by himself. Then there was some guy that showed VGA could be generated, and Peter looked at the code, and used it/improved it etc.. Now we are 5 years (yes 5 years !) further, and the world has embraced the pico's, and communities start writing code for it/porting to it. So Peter does not have to write every line of code himself. He can learn from at what others created, and use the knwoledge.

And then there is Claude ... to help with new code.

Volhout
Edited 2026-05-29 16:40 by Volhout

Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9992
Posted: 11:54pm 29 May 2026      

 

Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 760
Posted: 07:27am 30 May 2026      

  matherp said  
  Quote  Game changer


Just wait  


This is indeed a game changer! Imagine what one can do with this features! Especially for future microcontroller applications it is insane. You have one display with touch and it is possible to control a lot of things with it.

Now it feels like MMBASIC is arrived in the future! I still can not believe it, I have so many projects in my mind with it. To be honest it also is some kind of a "professional look and feel" (if you know what I mean).

Greetings
Daniel
Edited 2026-05-30 17:30 by Amnesie