PicoMite V5.07.00b0 - beta firmware


Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 12176
Posted: 01:00pm 18 Jul 2021      

It is very important in an embedded device that console output and graphics output are separate. I don't know what happens in the TinyUSB stack if you keep sending output to it when there is no connection - does it eventually lock up? use up memory? or what?

So for the Picomite graphics commands (including CLS) are separate from console I/O and a running program will create no console I/O unless specifically coded to do so in the same way that it won't generate graphics unless coded to do so.

If you set up autorun there is no console I/O in the boot sequence, the code just starts running. Then it is up to the programmer to use the I/O depending on the specifics of his/her application and environment.

To clear a connected console just use the standard escape sequence esc[2J

e.g. print chr$(27)+"[2J"
then print chr$(27)+"[H" to home the cursor