![]() |
Forum Index : Microcontroller and PC projects : mmbasic print@ command
Author | Message | ||||
Turrican Newbie ![]() Joined: 24/06/2019 Location: SwedenPosts: 10 |
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 KingdomPosts: 2170 |
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: NetherlandsPosts: 5091 |
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: SwedenPosts: 10 |
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. |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |