Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 12:57 17 Sep 2025 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 : PicoMite V6.01.00 betas

     Page 9 of 11    
Author Message
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2634
Posted: 08:23pm 22 Aug 2025
Copy link to clipboard 
Print this post

this is the answer... gui show all
cls
'define touch areas  
 gui area 1,0,199,80,40 ':line 0,239,80,239,rgb(blue)'left button
 gui area 2,140,199,80,40 ':line 140,239,220,239,rgb(blue)'right button
 gui area 3,279,40,40,80 ':line 319,40,319,120,rgb(blue)'up button
 gui area 4,279,159,40,80 ':line 319,179,319,239,rgb(blue)'down button
'cls
'draw direction buttons
 box 0,199,80,40,3,rgb(white),rgb(blue)'left button
 box 140,199,80,40,3,rgb(white),rgb(blue)'right button
 box 279,40,40,80,3,rgb(white),rgb(blue) 'up button
 box 279,159,40,80,3,rgb(white),rgb(blue)'down button
 do
   tr=TOUCH(REF)
 loop until tr>0
 cls
 gui show all
 
do
'init players start positions

regards stan
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2634
Posted: 08:31pm 22 Aug 2025
Copy link to clipboard 
Print this post

the manual
GUI SHOW ALL


This will undo the effects of GUI HIDE and restore the control(s) to being
visible and capable of normal operation.
'#ref' is the control's reference number. The keyword ALL can be used as the
argument and that will disable all controls.  

should be enable?
Edited 2025-08-23 06:33 by stanleyella
 
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 665
Posted: 05:59pm 26 Aug 2025
Copy link to clipboard 
Print this post

Hi Peter,
Is there any way to get back some version of the LCD320 option for SPI displays?
I am testing code for a 240*320 display on a 7796s and doing a merge on the whole screen, rather than 240*320 is proving problematic, speed wise.
As a half way house, would it be easier to do 240*480, so full width, but only 240 high? this would probably make it fast enough for most purposes.
Thanks for any sugestions.
Regards Kevin.
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3303
Posted: 09:05pm 26 Aug 2025
Copy link to clipboard 
Print this post

  stanleyella said  The keyword ALL can be used as the
argument and that will disable all controls.  

should be enable?

Thanks Stanley, fixed.

Geoff
Geoff Graham - http://geoffg.net
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10400
Posted: 09:24pm 26 Aug 2025
Copy link to clipboard 
Print this post

  Quote  Is there any way to get back some version of the LCD320 option for SPI displays?


POKE DISPLAY HRES n
POKE DISPLAY VRES n
These commands change the stored value of MM.HRES and MM.VRES
allowing the programmer to configure non-standard displays.

That's all LCD320 did but it wasn't fully robust so I removed it but worth trying
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2634
Posted: 09:32pm 26 Aug 2025
Copy link to clipboard 
Print this post

Thank you for brill coding kit. I am luvin it, marvellous, thank you and Peter. Without the manual we'd be clueless, well I would be. I should read the "small print" before posting problems that are explained if I took time to read. happy days. regards, stan
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8080
Posted: 07:44am 27 Aug 2025
Copy link to clipboard 
Print this post

Perhaps a slight manual change would be in order?
Page 100 - ADC OPEN command
  Quote  This allocates up to 4 ADC channels for use and sets them to be converted at
the specified frequency.
The range of pins are GP26, GP27, GP28, and GP29 for the RP2940 and
RP2350A. Plus GP55, GP56, GP57, GP58 on the RP2350B. If the number of
channels is one then it will always be GP26 used, if two then GP26 and GP27
are used, etc. Sampling of multiple channels is sequential (there is only one

Suggested change:

This allocates up to 4 ADC channels from the ADC0-ADC3 group for use and sets them to be converted at the specified frequency.

The range of pins is GP26, GP27, GP28, and GP29 for the RP2040 and
RP2350A or GP40, GP41, GP42 and GP43 on the RP2350B. If the number of channels is one then it will always be ADC0 used, if two then ADC0 and ADC1 are used, etc. Sampling of multiple channels is sequential (there is only one ADC).
Mick

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

Joined: 20/09/2024
Location: Germany
Posts: 570
Posted: 08:46am 27 Aug 2025
Copy link to clipboard 
Print this post

  matherp said  
  Quote  Is there any way to get back some version of the LCD320 option for SPI displays?


POKE DISPLAY HRES n
POKE DISPLAY VRES n
These commands change the stored value of MM.HRES and MM.VRES
allowing the programmer to configure non-standard displays.

That's all LCD320 did but it wasn't fully robust so I removed it but worth trying


Thanks for this hint.
I'm using a SSD1963 with a RP2040 latest firmware.
Option LCD320 on works fine called within the program. Coming back to console will leave this option on and editor is shown in 320x240 in the upper left edge.

Option LCD320 off gives an error at the console but switches back to standard Resolution 800x480 but seems not to reset hres/vres to correct values. When I call the program for the second time, the picture is scrambled and x/y is not correct.
Poke display then seems to help (quick test)


Edit: sorry, it does not help for me. Found no other way than doing cpu restart to get out of this
Edited 2025-08-27 19:28 by dddns
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 461
Posted: 03:26am 28 Aug 2025
Copy link to clipboard 
Print this post

  matherp said  Should be fixed


PicoMiteV6.01.00b10.zip


is b9 the last version that will work on a 2040 non-USB, non-VGA, non-HDMI?
Edited 2025-08-28 13:28 by toml_12953
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5256
Posted: 06:02am 28 Aug 2025
Copy link to clipboard 
Print this post

Tom,

The b10 download file has been updated with the missing versions. If you clear browser cache, and download again, you will get the full list (including 2040 nonVGA,nonUSB(nonHDMI ... There never was a 2040 HDMI version).

Volhout
PicomiteVGA PETSCII ROBOTS
 
Bryan1

Guru

Joined: 22/02/2006
Location: Australia
Posts: 1545
Posted: 06:07am 28 Aug 2025
Copy link to clipboard 
Print this post

Tom V6.0100 and forward are for the 2350 as stated on the first post
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 461
Posted: 10:28am 28 Aug 2025
Copy link to clipboard 
Print this post

  Bryan1 said  Tom V6.0100 and forward are for the 2350 as stated on the first post


b10 still has all the files for the 2040.
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5256
Posted: 10:58am 28 Aug 2025
Copy link to clipboard 
Print this post

Tom, Bryan,

V6.00.03 was the end of the 2040 series.

As far as I know for 6.01.00
- there are only bug fixes for 2040
- bug fixes for 2350 and new functionality

So for 2040 it may be interesting to use 6.01.00 since some bugs that are fixed are pretty essential.

Volhout
PicomiteVGA PETSCII ROBOTS
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1629
Posted: 08:56am 29 Aug 2025
Copy link to clipboard 
Print this post

Hi Peter, a quick question: Is it possible that the illegal (and unintentional) use of path or file names longer than the allowed 63 characters can corrupt the memory structure?
Kind regards
Michael
causality ≠ correlation ≠ coincidence
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8080
Posted: 10:15am 29 Aug 2025
Copy link to clipboard 
Print this post

Just don't do it. Something nasty will happen anyway. Even if there's no error flagged the string will probably be truncated, causing a different sort of error.

fullpath$ = path$ + filename$
if len(fullpath$) > 63 then do_some_sort_of_error_handling_or_you'll_be_in_the_wet_and_smelly

:)
Mick

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

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1629
Posted: 10:52am 29 Aug 2025
Copy link to clipboard 
Print this post

Hi Mick,
Thanks for the good advice! And that's really the best solution if you only have three files on the drive. But there are cases that are more complicated, like many things in life. ;-)

I am still tinkering with the FM at the moment.
And for most problem cases there are already satisfactory solutions.
My question was addressed to Peter only because, during the days of testing - also with overly long pathnames - I observed strange effects.
I'm just looking to confirm or deny my suspicion.

It is relatively easy to prevent the copying of files/directories with long pathnames  into locations with other long pathnames. But there are special cases that are difficult - and require great effort - to handle. For example, a user may want to rename an existing directory and choose a name which, when combined with one name somewhere among the possible thousands of files and directories beneath it, would exceed the permitted length.

To prevent this, the entire drive would have to be scanned each time the rename command is used, which would render the command unusable.

Regards
Michael
Edited 2025-08-29 21:23 by twofingers
causality ≠ correlation ≠ coincidence
 
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 665
Posted: 12:14pm 29 Aug 2025
Copy link to clipboard 
Print this post

Hi Peter,
Is it to be expected that the Framebuffer Sync, only works with background merge and not with background copy? It would be handy if it did, currently the program waits forever if I use it with copy.
Regards Kevin
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8080
Posted: 12:38pm 29 Aug 2025
Copy link to clipboard 
Print this post

@Twofingers
In theory it can happen no matter what the maximum length is. The only way to be sure is to have unlimited length file names. That's not going to happen on a Pico. The alternative is to throw an error - and that's something I haven't tested. Truncating the string without warning wouldn't be acceptable, it's safer to do a proper crash! The Pico doesn't have incredibly clever error handling and something like this might be something you just have to live with. It'll be interesting to see what @matherp says though.

Much, much safer to parse what the user is trying to do and catch any error before the command is passed to MMBasic's file handling.
Mick

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

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1629
Posted: 12:48pm 29 Aug 2025
Copy link to clipboard 
Print this post

Hi Mick,
I agree with you. For me, having a file system for the Picos is a small miracle; I'm happy to accept its limitations. It's just important to know the limitations and the potential consequences. Hence my question to Peter.
Michael
Edited 2025-08-29 22:54 by twofingers
causality ≠ correlation ≠ coincidence
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 693
Posted: 06:11pm 29 Aug 2025
Copy link to clipboard 
Print this post

  twofingers said  Hi Peter, a quick question: Is it possible that the illegal (and unintentional) use of path or file names longer than the allowed 63 characters can corrupt the memory structure?
Kind regards
Michael


Hi,

It definitly makes problems, because I learned this the hard way. I was searching for two whole days the problem in my program. I had a variable set to 1 to trigger an subroutine and open a file to preview it. I got an error, that this file doesn't exists. I checked a million times via PRINT debugging the state of all variables and everything was fine. I was about to ask about a bug in this forum and then it HIT me like a stone ... There is a 63 char limitation! Damn!    Now everything became clear, problem fixed.

So the answer is, it does make problems.

Greetings
Daniel
 
     Page 9 of 11    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025