PicoMite/VGA/Web V5.08.00: Release candidates


Author Message
JanVolk
Guru

Joined: 28/01/2023
Location: Netherlands
Posts: 401
Posted: 12:03am 18 Jan 2024      

Thank you. From now on, use files with wildcards, which is much easier, and use that example in a program.

Jan

TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6570
Posted: 02:47am 18 Jan 2024      

Webmite
WEB TCP CLIENT REQUEST is not always saving the last packet.

The following code
WEB OPEN TCP CLIENT "api.openweathermap.org",80
WEB TCP CLIENT REQUEST b$,m%(),10000
PAUSE 200
WEB CLOSE TCP CLIENT
PRINT "Length is ";LLEN(m%())
LONGSTRING PRINT  m%()


will return a short string if the "pause 200" delay is not used before closing the stream.

It doesn't seem to matter if the reply is 2 or 20 packets long. It doesn't matter if I am retrieving from my local network or across the WWW. The same 200mS delay is needed.

Replies that fit into one packet don't need the delay before closing.

Jim

matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11737
Posted: 11:11am 18 Jan 2024      

Jim

Please could you try the attached - untested


PicoMiteWeb.zip

matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11737
Posted: 01:02pm 18 Jan 2024      

Forgot to mention some time ago. The VGA version can now optionally use different pins

OPTION VGA PINS HSYNCpin, BLUEpin
The command changes the pins used for VGA display output allowing more flexibility in PCB design or wiring. “HSYNCpin” defines the start of a pair of contiguous GP numbered pins that are connected to HSYNC and VSYNC
“BLUEpin” defines the start of four contiguous GP numbered pins that are connected to BLUE, GREEN_LSB, GREEN_MSB, and RED.

Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 9022
Posted: 02:41pm 18 Jan 2024      

Oh brilliant!!!!! Thanks. :)
I'll have to try that on a RP2040-Zero.

TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6570
Posted: 07:42pm 18 Jan 2024      

  matherp said  Jim

Please could you try the attached - untested


PicoMiteWeb.zip


Yes!
That seems to have fixed it. 2k and 20k replies are returned in full without any need for a delay.

Thanks.
Jim