Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 12:23 26 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 : New Firmware Release for the PicoMite Family - V5.08.00

     Page 4 of 5    
Author Message
javavi

Senior Member

Joined: 01/10/2023
Location: Ukraine
Posts: 213
Posted: 11:40pm 30 Jan 2024
Copy link to clipboard 
Print this post

Geoff and Peter,
Is it possible to implement in PicoMite a mode for accessing the contents of an SD card from a computer via USB?
This mode is available in this bootloader that I use for my board.
https://github.com/xrip/pico-launcher


Regards, Java
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4233
Posted: 06:25am 31 Jan 2024
Copy link to clipboard 
Print this post

  phil99 said  Works on mine.
> option list
PicoMiteVGA MMBasic Version 5.08.00
...
> mode 2
> gui test lcdpanel
> save image "b:test.bmp"
> cls 255
> load image "b:test.bmp">


Re imaged the pico, and now it does work
There is a bad aura around me lately…

Volhout
PicomiteVGA PETSCII ROBOTS
 
mozzie
Regular Member

Joined: 15/06/2020
Location: Australia
Posts: 68
Posted: 05:53am 02 Feb 2024
Copy link to clipboard 
Print this post

G'day,
My thanks to Peter, Geoff and everyone else who has made the latest version of MMBasic for the picomite possible, the new functions add to what is already a very capable platform.  

Now the learning curve begins figuring out how to use all this power  

Regards,
Lyle.
 
heli
Newbie

Joined: 02/02/2024
Location: Austria
Posts: 1
Posted: 09:32am 04 Feb 2024
Copy link to clipboard 
Print this post

Thank you very much for this great project!
So much fun to do low-effort IOT programming -- without the need for an IDE.

I have just one question:
is it currently possible to run a "WebMite VGA"?

With the WebMite firmware I have WIFI, but I don't get a VGA output (and no "option vga pins"),
and with the PicoMite VGA firmware I have VGA output, but the "option wifi" is not available.

So I guess one can currently not have both in one project ...
or am I doing something wrong?



Thank you very much!




  Geoffg said  Announcing the new firmware version 5.08.00 for the PicoMite, PicoMite VGA and the WebMite from Peter Mather.

...

Congratulations to Peter for a lot of hard work and perseverance.

Geoff
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3194
Posted: 09:54am 04 Feb 2024
Copy link to clipboard 
Print this post

Yes, you are quite correct.  You can have VGA or WiFi but not both in the same firmware.

Geoff
Geoff Graham - http://geoffg.net
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2350
Posted: 12:07pm 05 Feb 2024
Copy link to clipboard 
Print this post

hi Geoff and Peter,
   am i right in saying that tabstops on the picomite VGA are set at every 2 columns on the VGA screen, as opposed to the every 8 columns normal on a VT terminal?


cheers,
rob   :-)
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6787
Posted: 12:25pm 05 Feb 2024
Copy link to clipboard 
Print this post

From the 5.07.03 manual, which applies to both PicoMite and PicoMite VBGA:

OPTION TAB 2|3|4|8
Default is 2

Remember that a VT terminal will normally assume a 80-column screen.
Edited 2024-02-05 22:28 by Mixtel90
Mick

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

Joined: 31/12/2012
Location: New Zealand
Posts: 2350
Posted: 02:34pm 05 Feb 2024
Copy link to clipboard 
Print this post

  Mixtel90 said  From the 5.07.03 manual, which applies to both PicoMite and PicoMite VBGA:

OPTION TAB 2|3|4|8
Default is 2

Remember that a VT terminal will normally assume a 80-column screen.


thanks Mixtel90, is good to known that this can be fixed with an OPTION setting. i wonder why it was defaulted to 2 for the Picomite on VGA (and presumably also LCDs on non-VGA picomites)?


cheers,
rob   :-)
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9115
Posted: 02:37pm 05 Feb 2024
Copy link to clipboard 
Print this post

It's been 2 in every version of MMBasic from the original Maximite onwards and for the avoidance of doubt, TAB characters are not stored but are converted by the firmware into the requisite number of space characters
Edited 2024-02-06 00:39 by matherp
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2350
Posted: 03:45pm 05 Feb 2024
Copy link to clipboard 
Print this post

  matherp said  It's been 2 in every version of MMBasic from the original Maximite onwards and for the avoidance of doubt, TAB characters are not stored but are converted by the firmware into the requisite number of space characters


i've been using micromites for what must be 10 years now, and i've always seen TAB characters expand out to multiples of 8. to prove it to myself, i just ran a test:

Micromite MKII MMBasic Ver 5.05.03
Copyright 2011-2020 Geoff Graham

> list
Print "0000000001111111111222222222233333333334"
Print "1234567890123456789012345678901234567890"
A=-1: B=-2: C=-3: D=-4: E=-5
Print A,B,C,D,E
>
> RUN
0000000001111111111222222222233333333334
1234567890123456789012345678901234567890
-1      -2      -3      -4      -5
>
>


and capturing the raw output:

user@HP-stream11-392758:~$ ./Desktop/GFXterm64\ \(2023-04-30\)
04:30:07.091ms   27 bytes
RUN<CR><LF>0000000001111111111222

04:30:07.111ms   60 bytes
222222233333333334<CR><LF>1234567890123456789012345678901234567890

04:30:07.131ms   20 bytes
<CR><LF>-1<TAB>-2<TAB>-3<TAB>-4<TAB>-5<CR><LF>>


them there TAB characters ain't being expanded into spaces, and that there VT compatible terminal emulator is expanding the TABs out to multiples of 8. as does every other VT compatible terminal emulator out there.

it is fair to say that your VGA code is the exception, although i just checked with your latest VGA/USB code and it is expanding the TAB characters on screen to multiples of 4! perhaps i got 2 and 4 mixed up, or perhaps in VGA 5.07.07 it was multiples of 2.

Mixtel90: adjusting OPTION TAB 2|3|4|8 has no effect upon screen/terminal output from PRINT statements. all it does is change how the tab key on the keyboard indents within the mmbasic editor.


cheers,
rob   :-)
Edited 2024-02-06 01:47 by robert.rozee
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6787
Posted: 04:18pm 05 Feb 2024
Copy link to clipboard 
Print this post

As you've seen, they are used for different things.

OPTION TAB sets the tab spacing for the editor. This defaults to 2 as any more can get silly when indenting code.

TAB() sets how far to pad to the next position in a PRINT or PRINT# statement.
GW-BASIC uses print zones of 14 spaces by default. MMBasic uses 8 spaces by default.
Mick

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

Joined: 31/12/2012
Location: New Zealand
Posts: 2350
Posted: 04:28pm 05 Feb 2024
Copy link to clipboard 
Print this post

  Mixtel90 said  MMBasic uses 8 spaces by default


nope, it appears that mmbasic on pico with VGA output uses 4 when displaying on an attached VGA screen. what CMM2 does, i have no idea. or micromite E100 et al on an attached LCD panel. or some of the PIC MZ variants - did any of them have VGA output?


cheers,
rob   :-)
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6787
Posted: 04:46pm 05 Feb 2024
Copy link to clipboard 
Print this post

From the latest VGA manual Appendix 1 (page 149):
  Quote  Normally each value is separated by a space character as shown in the previous example but you can
also separate values with a comma (,). The comma will cause a tab to be inserted between the two
values. In MMBasic tabs in the PRINT command are eight characters apart.
To illustrate tabbing, the following command prints a tabbed list of numbers:
> PRINT 12, 34, 9.4, 1000
12 34 9.4 1000

This may be out of date, of course.

AFAIK only the CMM and Pico series have used VGA.
Mick

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

Joined: 31/12/2012
Location: New Zealand
Posts: 2350
Posted: 01:05am 06 Feb 2024
Copy link to clipboard 
Print this post

see, tab stops every 4 columns:



Geoff - you may wish to update your manual for the PicoMite VGA to match the behaviour of Peter's code.

after all the palaver here and elsewhere on the forum, i certainly won't be bothering to waste my time report any other bugs, errors, or inconsistencies again! guessing by the reduced traffic on here i assume most others have already arrived at the same conclusion.


cheers,
rob.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6098
Posted: 05:45am 06 Feb 2024
Copy link to clipboard 
Print this post

Normal PRINT statements on the CMM2 obey whatever the OPTION TAB x is set to when seen on the VGA output.
When seen by a terminal emulator, it depends on whatever the terminal is set to. Most seem to default to 8.
With a terminal emulator, you could clear all tabs and set your own tabs at any column.

Jim
VK7JH
MMedit   MMBasic Help
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3194
Posted: 05:55am 06 Feb 2024
Copy link to clipboard 
Print this post

  robert.rozee said  after all the palaver here and elsewhere on the forum.

I think that few saw it as a significant issue and it wasn't helped by the confusion between tabs in the editor and tabs in PRINT statements.  Regardless, you certainly found the answer.

Geoff
Edited 2024-02-06 15:58 by Geoffg
Geoff Graham - http://geoffg.net
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9115
Posted: 08:09am 06 Feb 2024
Copy link to clipboard 
Print this post

The code currently is set to 4 but should probably respect OPTION TAB both for print and the editor as per other variants. These means by default the print tab is 2 for other variants and will be for the Pico when I change it. It has never defaulted to 8 on any version of MMbasic for a local screen but of course a tab sent to a remote console will, as Jim says, do whatever the terminal is set up for
Edited 2024-02-06 18:12 by matherp
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6787
Posted: 09:16am 06 Feb 2024
Copy link to clipboard 
Print this post

I'll be quite honest, I've never really noticed the tab setting. By and large it doesn't matter on the console - they are what they are. On any local display I almost always position text using PRINT@ or TEXT. Even when I want console output I often use ANSI codes. The only time I really use TAB is for putting temporary PRINT statements in for debugging.
Mick

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

Regular Member

Joined: 15/12/2022
Location: Australia
Posts: 59
Posted: 09:58am 08 Feb 2024
Copy link to clipboard 
Print this post

Hi all,

A quick question:
What causes
[CYW43] do_ioctl(2, 263, 16): timeout

as over the last few updates, I've been seeing a few.
The Heartbeat freezes, although each time I hit Enter in the console, the Heartbeat toggles.
Left to its own devices, the Webmite will eventually re-start, but it can take a while.

Cheers,

Chris.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9115
Posted: 10:11am 08 Feb 2024
Copy link to clipboard 
Print this post

I wish I knew

The error means that the wifi unit hasn't responded to a command as expected. The I/F uses PIO and is part of the RP2040 SDK. This error is at the route of all the instability in the WebMite. It happens infrequently and doesn't seem to be associated with any specific web activity. We can only hope that a new version of the sdk sometime in the future will fix it
 
     Page 4 of 5    
Print this page
© JAQ Software 2024