Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:23 27 Nov 2024 Privacy Policy
Jump to

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 : PicoMiteVGA: Print only to USB console?

Author Message
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1109
Posted: 04:09am 25 Nov 2023
Copy link to clipboard 
Print this post

My searching is proving fruitless so far.

Is there a way to send print statements out the USB console only and not to the VGA screen?

The command OPTION CONSOLE SERIAL works for MMB4W, but not for the PicoMiteVGA.
Print #0, something sends the output to both the console and the VGA screen.
OPTION SERIAL CONSOLE pinA, pinB, B maybe needs 2 free pins for an unused serial port?
Visit Vegipete's *Mite Library for cool programs.
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9307
Posted: 05:39am 25 Nov 2023
Copy link to clipboard 
Print this post

From what I can find, this is not possible.
I guess this cos with the VGA-mite, the assumption is that you will be using the VGA screen as the console, and disabling the VGA output of the console would seem to be counter-productive for the VGA port.
I might be totally wrong.
There might be a way to do it, I just have not found it same as you.
If Peter reads this thread, I am sure he will comment if I am totally off my rocker.  
Edited 2023-11-25 15:40 by Grogster
Smoke makes things work. When the smoke gets out, it stops!
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1109
Posted: 06:30am 25 Nov 2023
Copy link to clipboard 
Print this post

Just to be clear, I still want the VGA showing stuff. TEXT commands appear on screen as desired. Think of it as sending debugging messages out the USB port.
Visit Vegipete's *Mite Library for cool programs.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 07:42am 25 Nov 2023
Copy link to clipboard 
Print this post

If you are running a program on a PicoMite VGA and you put a PRINT statement in it that will go to the console on the USB, won't it? If you are at the command line the VGA console and the USB console display the same output.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9122
Posted: 08:18am 25 Nov 2023
Copy link to clipboard 
Print this post

OPTION LCDPANEL NOCONSOLE turns off all console output to the screen and leaves it like a LCD display that responds to graphics commands only (including TEXT)
 
amigawizard

Regular Member

Joined: 15/08/2023
Location: Australia
Posts: 43
Posted: 08:59am 25 Nov 2023
Copy link to clipboard 
Print this post

Yes !  John and I  had used that on the maximite`s

       and on our Olimex boards  running MMX

       before USB CDC  was removed  !

             Wayne  !

`
 
amigawizard

Regular Member

Joined: 15/08/2023
Location: Australia
Posts: 43
Posted: 09:10am 25 Nov 2023
Copy link to clipboard 
Print this post

https://www.olimex.com/Products/PIC/Development/PIC32-HMZ144/

      Wayne  !!

`
 
Martin H.

Guru

Joined: 04/06/2022
Location: Germany
Posts: 1113
Posted: 12:32pm 25 Nov 2023
Copy link to clipboard 
Print this post

  vegipete said  My searching is proving fruitless so far.

Is there a way to send print statements out the USB console only and not to the VGA screen?

The command OPTION CONSOLE SERIAL works for MMB4W, but not for the PicoMiteVGA.
Print #0, something sends the output to both the console and the VGA screen.
OPTION SERIAL CONSOLE pinA, pinB, B maybe needs 2 free pins for an unused serial port?



  Quote  
OPTION LCDPANEL NOCONSOLE (NB tick in manual should be in square brackets)

If used in a program this is a temporary OPTION (useful for debugging with a USB/serial CONSOLE) and disables PRINT output to the VGA display. Graphics commands will continue to work.
If used at the command prompt this OPTION is permanent, both print output and CONSOLE output will be disabled and only graphics commands will output to the VGA screen

btw: also TEXT Command is working on the VGA Screen, If you put the option at the start of your Programm, it is just while the Program is running.
https://www.thebackshed.com/forum/ViewTopic.php?TID=15193&PID=192356#192356
Edited 2023-11-25 22:36 by Martin H.
'no comment
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1109
Posted: 04:34pm 25 Nov 2023
Copy link to clipboard 
Print this post

Thank you, OPTION LCDPANEL NOCONSOLE is exactly what I was looking for, does exactly what I want. And it's written right in the manual in plain sight. Doh.
Visit Vegipete's *Mite Library for cool programs.
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2914
Posted: 11:14pm 25 Nov 2023
Copy link to clipboard 
Print this post

Hi VegiPete, All,

I am not a very good programmer but I would never look for an LCDPANEL command, to be supported,  if I was using the VGA version of MMBASIC.

That’s interesting,

Regards,

Mick
Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024