Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:56 02 Aug 2025 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 : mmbasic print@ command

Author Message
Turrican
Newbie

Joined: 24/06/2019
Location: Sweden
Posts: 10
Posted: 01:15pm 09 Mar 2021
Copy link to clipboard 
Print this post

Hi!

I have created a solar tracker using a duinomite and mmbasic. I display various data with the Print@ command on both the VGA monitor and in Teraterm. The problem is that when running the program on my Micromites every line with Print@ gives me a Syntax Error message. Is this because the Micromites have no monitor attached?
/Thanks
There is NO need for more than 8-bits.
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2170
Posted: 01:29pm 09 Mar 2021
Copy link to clipboard 
Print this post

Micromites do not have a "native display", being console devices. So there is no display taken for granted.

If you are driving a console session that is VT compatible, you do have screen positioning control using ESC[ sequences but the @ functionality is missing from MicroMites. If you use an LCD panel, you use the TEXT statement which has positioning built in.

If you are talking from the micromite back to a console thru the serial interface, have a look at this link for a nice screen control pack I did for VT consoles.

To make your prog universal, what I would do is have the two different methods in my code then have some code at the top of my prog which determined the type of device it is running on (MM.DEVICE) and switch between the two types when you want to output something.

MM.DEVICE$ will tell you the platform type so you can set a simple flag accordingly. I use this a lot to make my code compatible

> ? MM.device$
ARMmite F407
>

> ? mm.device$
Micromite MkII
>

Edited 2021-03-09 23:50 by CaptainBoing
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5091
Posted: 01:32pm 09 Mar 2021
Copy link to clipboard 
Print this post

Hi Turricane,

Yes, you are correct. The Maximites (MMBasic 4.5) use print@ to locate text on the VGA screen.

The micomites (MMBasic 5.0x) have a PC serial/USB interface. On that interface they do not support print@ (you can look that up in the micromite user manual). On the PC interface there is no graphics support (i.e. line draw) either.
When an LCD is attached to the micromite, they do support placing text on that LCD screen using the TEXT x,y,... command where x and y are the location on the LCD. On the LCD there is also graphics support.

I hope this helps,

Volhout
Edited 2021-03-09 23:36 by Volhout
PicomiteVGA PETSCII ROBOTS
 
Turrican
Newbie

Joined: 24/06/2019
Location: Sweden
Posts: 10
Posted: 01:48pm 09 Mar 2021
Copy link to clipboard 
Print this post

Thanks!
I don't really need the code to work on a VGA monitor since it is supposed to be executed on a Micromite Explore 28 when everthing is finished. I will look into the the screen control pack. :)
There is NO need for more than 8-bits.
 
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025