Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:21 05 Dec 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 : Draft PicoMite 6.00.01 User Manual

     Page 3 of 4    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9186
Posted: 09:40am 30 Nov 2024
Copy link to clipboard 
Print this post

No sorry for not explaining properly

OPTION RESOLUTION nn [,cpuspeedinKhz]

For 640x480 the display frequency can be set to 60Hz (252Mhz) or 75Hz (315MHz) by appending 'cpuspeedinKHz' to the command (252000 or 315000)

More changes:

Page 17:
Mode 4 with optional layer (significant memory usage)

Page 47:
The automatic application of a layer buffer is implemented in VGA versions mode 2 and (RP2350 only) mode 3  as well as HDMI modes 2, 3, 4, and 5.

Page 111:
FRAMEBUFFER LAYER [colour]
Creates a layer buffer “L” with a colour space and resolution to match the current display mode. The optional parameter colour is specified as a number 0-15 (modes 2 and 3), RGB888 colour (mode 4) or 0-255 (mode 5) and specifies a colour which is ignored when the layer is applied to the display. In display modes where automatic layer application is not supported a layer buffer acts as another framebuffer.
 
Pluto
Guru

Joined: 09/06/2017
Location: Finland
Posts: 361
Posted: 10:01am 30 Nov 2024
Copy link to clipboard 
Print this post

  Quote  For 640x480 the display frequency can be set to 60Hz (252Mhz) or 75Hz (315MHz) by appending 'cpuspeedinKHz' to the command (252000 or 315000)

Will the optional parameter override OPTION CPUSPEED? Or is the parameter only affecting the PIO frequency, which can be different from CPU frequency?
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9186
Posted: 10:29am 30 Nov 2024
Copy link to clipboard 
Print this post

The frequency for HDMI is  set by the OPTION RESOLUTION command. OPTION CPUSPEED will give "Invalid option" HDMI is nothing to do with PIO
Edited 2024-11-30 20:29 by matherp
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9186
Posted: 11:16am 30 Nov 2024
Copy link to clipboard 
Print this post

Geoff

Another tweak of functionality will be in final release

OPTION MILLISECONDS ON/OFF  (temporary defaults to OFF)
This option enables millisecond output in the TIME$ function ie HH:MM:SS.mmm
NB: the milliseconds are set to zero whenever the time is updated using the TIME command, WEB NTP command or RTC GETTIME command
Edited 2024-11-30 21:20 by matherp
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9186
Posted: 06:49pm 30 Nov 2024
Copy link to clipboard 
Print this post

And another - page 139

VGA AND HDMI displays and framebuffers in modes 2 and 3 and LCD Framebuffers ONLY
Sprites are always stored as RGB121 'nibbles' for efficiency
 
Malibu
Senior Member

Joined: 07/07/2018
Location: Australia
Posts: 237
Posted: 08:39pm 30 Nov 2024
Copy link to clipboard 
Print this post

A great manual Geoff! It's a lot of work, and many thanks...

A couple of things:
pg66 - OPTION TCP SERVER PORT nn (there's no reference to the optional timeout)
"OPTION TCP SERVER PORT nn" is also not listed in the option table starting on pg85

some simple typos:
pg6 - You can ignore and files that may be on this “drive” ("and" => "any"?)
pg83 - MMINFO(SYSTEM I2C) (MMINFO => MM.INFO)
pg137 - SETPIN GP25, DOUT | HEARTBEAT : NOT AVAILABLE ON THE WEBNITE VERSION (WEBNITE => WEBMITE)
John
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3208
Posted: 01:51am 01 Dec 2024
Copy link to clipboard 
Print this post

Thanks again everyone.  Most of these will make their way into the final version.

Geoff
Geoff Graham - http://geoffg.net
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1619
Posted: 05:05am 01 Dec 2024
Copy link to clipboard 
Print this post

Geoff,

Some time ago Volhout produced a document titled: "Graphics in the PicoMite VGA" with additions by Martin H. Peter was going to ask you to include it with the downloads but that has no happened.

  matherp said  This is really useful - many thanks. Once you've had a few days to take comments and make any changes I'll ask Geoff to include it in the download with the rest of the documentation


See

The file is attached.
pico_graphics_V3.2.zip

Bill
Keep safe. Live long and prosper.
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1619
Posted: 05:16am 01 Dec 2024
Copy link to clipboard 
Print this post

Page 46 under the heading: Read Only Variables

MM. HRES and
MM. VRES

Both contain spaces which should not be there.

Bill
Edited 2024-12-01 15:47 by Turbo46
Keep safe. Live long and prosper.
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3208
Posted: 07:01am 01 Dec 2024
Copy link to clipboard 
Print this post

  Turbo46 said  Some time ago Volhout produced a document titled: "Graphics in the PicoMite VGA" with additions by Martin H. Peter was going to ask you to include it with the downloads but that has not happened.

I have not seen it, but it is a great tutorial, so it is defiantly going in.

Volhout and Martin - if you have an updated version, please send it on to me.

Geoff
Geoff Graham - http://geoffg.net
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6839
Posted: 07:46am 01 Dec 2024
Copy link to clipboard 
Print this post

I feel the urge to stock up on printer paper and a new, thicker ring binder....
;)
Mick

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

Joined: 05/03/2018
Location: Netherlands
Posts: 4276
Posted: 08:43am 01 Dec 2024
Copy link to clipboard 
Print this post

Hi Geoff,

The file Bill send you was the consolidated last version of the document. There have not been updates to it since, but I did a final check against the syntax of 6.00.01 (blit-sprite changes)


pico_graphics_V3.3.zip

Thanks Bill and Martin for your contributions. Geoff, if you include this please do a careful check on layout. It was editted in Libre-Office. And Libre Office is known to sometimes fail on layout of DOCX documents.

Volhout
Edited 2024-12-01 19:24 by Volhout
PicomiteVGA PETSCII ROBOTS
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2152
Posted: 12:18pm 01 Dec 2024
Copy link to clipboard 
Print this post

  Bottom of p100 said  Without OPTION RTC AUTO ENABLE the PicoMite firmware starts with the date set to "01-01-2000" on power up.
For 2040 WebMite, standard 2040 PicoMite, 2350 VGA and perhaps others it is now "01-01-2024"

It would seem either the manual or firmware needs adjusting to one or the other.
If backward compatibility is desired maybe standardize on "01-01-2000".
Edited 2024-12-01 22:25 by phil99
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3820
Posted: 02:29pm 01 Dec 2024
Copy link to clipboard 
Print this post

  Geoffg said  it is a great tutorial, so it is defiantly going in.

LOL - brilliant!

(the typo, if typo it is)

John
Edited 2024-12-02 00:31 by JohnS
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6839
Posted: 04:27pm 01 Dec 2024
Copy link to clipboard 
Print this post

Boldly going where no tutorial has dared to go before, eh?  :)
Mick

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

Joined: 27/09/2024
Location: United States
Posts: 4
Posted: 04:56pm 01 Dec 2024
Copy link to clipboard 
Print this post

Regarding the very nice graphics demo in the manual starting on page 234.
I am using a five-inch SSD1963 LCD Display with this configuration:
OPTION SYSTEM SPI GP10,GP11,GP12
OPTION SYSTEM I2C GP8,GP9
OPTION LCDPANEL SSD1963_5, LANDSCAPE
OPTION GUI CONTROLS 75
OPTION TOUCH GP18,GP19
GUI CALIBRATE 1, 134, 3777, 2065, -1340
OPTION SDCARD GP22

I had issues until I made the following changes to Example Program:
Note: [nn]   where nn is the line number

Also I found the MsgBox command no longer works in 6.0. See line [83].
I retested it again in PicoMite 5.07 and it works fine


[3] mode 10
Error : Unknown command
Fix: made it a comment.

[4] Option console serial
Error : Invalid Option
Fix: made it a comment.

[16]’CLS
Fix: removed comment character

[19] GUI cursor on 0, MM.HRes\2,MM.VRes\2
Error : Unknown command
Fix: made it a comment.

[42] 6 ,90,MM.Info(FontHeight)+12,RGB(yellow),RGB(64,64,64)
Error : Invalid character: ,
Fix: moved it back to line 41 and added minus character before the six “6”.

[44] 6 ,90,MM.Info(FontHeight)+12,RGB(yellow),RGB(64,64,64)
Error : Invalid character: ,
Fix: moved it back to line 43 and added minus character before the six “6”.

[78] Select Case click(REF) ' find out the control touched
Error : REF is not declared
Fix: changed click to touch.

[83] Error : Invalid character:
Fix: Replaced line with mbox=1   (Because MsgBox does not work on 6.0)

[110] Select Case click(LASTREF) ' use the last reference
Error : LASTREF is not declared

Fix: changed click to touch.

=============

Once last thought,  the Gui calibration gives me an error.
So I simply enter this: GUI CALIBRATE 1, 134, 3777, 2065, -1340

However If I use a seven inch board, then the gui calibration works fine.

Kevin
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9186
Posted: 05:10pm 01 Dec 2024
Copy link to clipboard 
Print this post

Geoff: that GUI example code is for the CMM2 rather than the Pico.

The issue with calibration of the 5" SSD is probably a power issue. The 5" is the hardest version to use because it uses 3.3V power and needs a lot of it - probably too much for the Pico's regulator to be reliable

What version are you testing with? Messagebox was fixed in a recent 6.00.01 release candidate
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2152
Posted: 09:37pm 01 Dec 2024
Copy link to clipboard 
Print this post

I'd like to see updates for pico 2/2350 hdmi modes in the manual and the memory limitations . I could dumb it down from what I know about hdmi layers and copying screen but don't know much. Peter has explained a bit but what is needed is a "this is the memory you got", "you can use this much", hdmi modes use "this much" but want it diagrammed what is possible in each mode :)
 
aiy745321
Newbie

Joined: 27/09/2024
Location: United States
Posts: 4
Posted: 10:58pm 01 Dec 2024
Copy link to clipboard 
Print this post

matherp,

I am using PicoMite MMBasic Version 6.00.00RC1

You are correct I do use the 3.3v power from the Pico.  I have a separate plug for five (5) volt power that supplies a seven-inch display, and optionally i can route that to VSYS pin on the Pico.  When I do, I can calibrate the five inch display.  Good to know.

I will look and see if I can find the new RC.

Please keep the GUI Example Program; its a nice demo.  I hope the comments I gave will help the work on the Draft manual.

Kevin
 
aFox
Regular Member

Joined: 28/02/2023
Location: Germany
Posts: 80
Posted: 11:02pm 01 Dec 2024
Copy link to clipboard 
Print this post

Page32

Measuring Distance

...
for this sensor because it uses 5V levels for its echo output.  The Raspberry Pi Pico 2 can tolerate 5V (while powered) so, in this case, level shifting is not required.

The last sentence does not apply to the trigger input signal. With a 3.3V voltage trigger signal, an echo signal is sometimes lost. Maybe it depends on the components used.

In my opinion, you should recommend the US-100 ultrasonic distance sensor.
In this case, no level converter is required.




If you can get a HC-SR04 ultrasonic sensor with CS100 chip inside or an US-025 you need also no level shifter. The quality is better too.




Pictures.zip

Gregor
Edited 2024-12-02 09:04 by aFox
 
     Page 3 of 4    
Print this page
© JAQ Software 2024