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.
USB versions Support as host for up to 4 CDC devices allowing a USB PicoMite to connect directly over USB to a non-USB PicoMite
Easter Egg - all versions
' MandelbrotTest.bas ' Demonstrates all features of the MANDELBROT command ' ' Requires a configured display (SPI LCD, VGA, etc.) ' Press Ctrl-C at any time to abort a draw in progres s
' --- 3. Bare command (no subcommand, 64 iters) --- CLS Print "Bare MANDELBROT command..." Mandelbrot Reset Timer = 0 Mandelbrot 64 Print "Done in " Str$(Timer) "ms" Pause 2000
' --- 4. Centre on a point of interest --- ' Re-centre on approx (3/4 width, 1/2 height) - nea r the ' boundary of the main cardioid, then zoom in CLS Print "Centre on interesting region..." Mandelbrot Reset Mandelbrot Draw Pause 1000 Mandelbrot Centre MM.HRES*3\4, MM.VRES\2 Print "Centred and redrawn" Pause 2000
' --- 5. Zoom in sequence --- CLS Print "Zooming in x2, x2, x2..." Mandelbrot Reset Mandelbrot Draw Pause 1000
' --- 6. Zoom out --- CLS Print "Zooming back out..." Mandelbrot Zoom 0.5 Print "Zoom x2 total (zoomed out x4)" Pause 2000
' --- 7. Pan around --- CLS Print "Panning right 50 pixels..." Mandelbrot Reset Mandelbrot Draw Pause 1000
Mandelbrot Pan 50, 0 Print "Panned right" Pause 1000
Print "Panning down 30 pixels..." Mandelbrot Pan 0, 30 Print "Panned down" Pause 1000
Print "Panning left and up..." Mandelbrot Pan -80, -30 Print "Panned left+up" Pause 2000
' --- 8. Combined: centre, zoom, pan workflow --- CLS Print "Interactive-style exploration..." Mandelbrot Reset Mandelbrot Draw Pause 1000
' Centre on the seahorse valley (approx left-centre o f set) Mandelbrot Centre MM.HRES\4, MM.VRES\2 Pause 1000
' Zoom in deep Mandelbrot Zoom 4 Pause 1000 Mandelbrot Zoom 4 Pause 1000 Mandelbrot Zoom 2 Pause 1000 Mandelbrot Zoom 2 Print "Deep zoom into seahorse valley" Pause 2000
' Increase iterations for detail at this depth Mandelbrot Draw 256 Print "Re-rendered with 256 iterations" Pause 2000
' --- 9. Reset back to default --- CLS Print "Resetting to default view..." Mandelbrot Reset Mandelbrot Draw Print "Back to default" Pause 2000
CLS Print "Mandelbrot demo complete!" End
Edited 2026-04-05 00:45 by matherp
lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3729
Posted: 04:09pm 04 Apr 2026
Copy link to clipboard
Print this post
This looks terrific if I understand correctly.
Does this mean I can plug a powered 4-port USB hub into Picomite1's USB_C port, and plug Picomite2-5 into the hub, and Picomite1 can talk to all as if talking to their consoles?
What provides console on Picomite1?
And I can plug a usb-serial module into the hub and connect the serial to any device which outputs serial and have a link to PicoMite1?
And at the same time have another Picomite connected with 4-pin parallel?
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11141
Posted: 04:34pm 04 Apr 2026
Copy link to clipboard
Print this post
The USB CDC host capability applies to the USB variants of the firmware. For these the console by default is standard UART serial on GP8/GP9. This is how it has been forever. The code is tested connecting my HDMIUSB reference design to a VGARP2350. You can have up to 4 connections simultaneously. I theory it could connect to a USB-serial module but untested. and in theory this can run at the same time as the parallel link - untested.
bfwolf Senior Member Joined: 03/01/2025 Location: GermanyPosts: 208
Posted: 09:10pm 04 Apr 2026
Copy link to clipboard
Print this post
Great that you took my suggestion about 4 bits into account! Just in case that was the reason? Otherwise, anyway fantastic!
First of all: Brilliant! Super! Thanks again!
Question: Isn't the baud parameter passed trough to USB-to-serial converters (like the FT232)? How do USB-to-RS232 adapter cables then determine the baud rate, nbits, and parity?
Regards
dddns Guru Joined: 20/09/2024 Location: GermanyPosts: 816
Posted: 09:30pm 04 Apr 2026
Copy link to clipboard
Print this post
Thank you for the enhancements! Would it be possible to use Xmodem with a custom com port?
toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 592
Posted: 11:34pm 04 Apr 2026
Copy link to clipboard
Print this post
I'm trying the beta. When I exit the editor with Esc, the prompt disappears except for a tiny dot in the upper left corner. Before you blame it on the PicoCalc, the final version of 6.02.01 runs fine.
lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3729
Posted: 12:05am 05 Apr 2026
Copy link to clipboard
Print this post
I got it to work with this module (Peter's):
I plugged a RP2350A-Zero pcb with ILI9341 LCD directly into one of the board's USB connectors, got recognition, did OPEN "COM3:9600" as #1 and then PRINT #1, "CLS RGB(BLUE)" and got a blue screen. But the PCB didn't supply enough power to do much more--it would restart.
So now I'm looking for a USB-A to USB-A cable for my powered hub. I'm pretty sure I used one back in December for something.
Found one--right in front of me, connecting to my USB-3 HDMI recorder. But it's not working with the powered hub, which has switchable USB ports. I switch one on, and nothing happens on the host.
I tried another powered hub--no joy. Is this an issue of a hub being plugged into another hub (on the HDMI PCB)?
Ok, I plugged the two into the HDMI PCB. Then:
> open "com3:9600" as #1 > open "com4:9600" as #2 > print #1,"Text mm.hres/2,mm.vres/2,"+chr$(34)+"Testing COM3"+chr$(34)+",C,,3" > print #2,"Text mm.hres/2,mm.vres/2,"+chr$(34)+"Testing COM4"+chr$(34)+",C,,3"
phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 3111
Posted: 02:00am 05 Apr 2026
Copy link to clipboard
Print this post
So how do you power locally?
Perhaps connect VSYS and ⏚ of all 3 Picos together.
mozzie Senior Member Joined: 15/06/2020 Location: AustraliaPosts: 251
Posted: 04:44am 05 Apr 2026
Copy link to clipboard
Print this post
G'day, From memory (could be faulty) you cannot connect more than 1 USB hub, either in series or parallel, to the PicoMite USB host, maybe try a bare PicoMite with just the powered hub, and USB to serial for console.
YMMV
Regards, Lyle.
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11141
Posted: 07:39am 05 Apr 2026
Copy link to clipboard
Print this post
One line fix for editor bug for TFT versions - no version change
The PicoMite supports 2 hubs. This allows a Raspberry Pi keyboard with its in-built hub to be plugged into the HDMIUSB reference board hub Edited 2026-04-05 17:42 by matherp
lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3729
Posted: 01:23pm 05 Apr 2026
Copy link to clipboard
Print this post
The PicoMite supports 2 hubs. This allows a Raspberry Pi keyboard with its in-built hub to be plugged into the HDMIUSB reference board hub
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11141
Posted: 02:48pm 05 Apr 2026
Copy link to clipboard
Print this post
Try it and tell us. From the manual
If you use a USB hub it is better to use an unpowered hub (ie, one that is powered by the Raspberry Pi Pico). This is because the USB protocol stack cannot reset the hub and it may be confused if the power on the Pico is cycled without doing the same for the hub. The hub can also be confused if devices are swapped while the hub is powered. If this happens you should cycle the power on the Pico followed by the hub then add the USB devices one by one.