Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 19:37 10 Jan 2026 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.02.00 release candidates - Structured types

     Page 6 of 6    
Author Message
JanVolk
Senior Member

Joined: 28/01/2023
Location: Netherlands
Posts: 290
Posted: 04:11pm 09 Jan 2026
Copy link to clipboard 
Print this post

I can get the problem with Flappy to occur.
If I load "flappy.bas" and quit the program with Ctrl+C, and then play an .mp3 file with "file.mp3," the record spins at 33 rpm instead of 45 rpm.
I want to try it with the original file because I might have made some changes in the past.
I've now transferred all the files to filename A: and am starting from filename A:
I think the original Flappy file came from Volhout?
Flappy works with an sll3sfx2.mod file from 119908.

Kind regards,

Jan.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10838
Posted: 04:16pm 09 Jan 2026
Copy link to clipboard 
Print this post

What is the music file in flappy? If you just play it direct and then ctrl-c and play an mp3 do you get the same?.
 
JanVolk
Senior Member

Joined: 28/01/2023
Location: Netherlands
Posts: 290
Posted: 04:39pm 09 Jan 2026
Copy link to clipboard 
Print this post

I found a flappyVGA folder from 2024-10-02, which may be the original, and it has the same sound problem.
This folder contains 34 files.

First, I perform a hard reset on the Raspberry Pi.
I play the file sll3sfx2.mod from A: with minifm_RC2, quit the program with Esc, and then start the MP3 file with F5, which then plays slowly.
The same thing happens with Ctrl+C.

Kind regards,

Jan.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10838
Posted: 04:39pm 09 Jan 2026
Copy link to clipboard 
Print this post

Jan

Please try this - should fix both bugs


PicoMite.zip
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3546
Posted: 04:40pm 09 Jan 2026
Copy link to clipboard 
Print this post

Is there a reason why REDIM PRESERVE of an array of structures doesn't work? I know that ",4" after STRUCT SORT fixes some of the problems of an array which has more elements than data, but REDIM PRESERVE might also provide a clean path (I don't, of course, know the effort required).

This works
Type test
 ii As integer
 aa As string length 15
End Type

Dim aray(20) As test
Dim integer i,j,k,l,m,n
Dim string a,b,c,d,e
Dim string animal(5)=("Dog","Cat","Squirrel","Ape","Giraffe","Hippo")
For i=0 To 9
aray(i).ii=i
aray(i).aa=animal(Int(Rnd*6))
Next i

'ReDim Preserve aray(i) As test
'Struct sort aray().aa ' could use ,4

Struct sort aray().aa,4

For i=0 To 9
 Print aray(i).ii;" "+aray(i).aa
Next i

> run
0 Ape
7 Ape
1 Cat
5 Dog
4 Dog
6 Dog
9 Giraffe
3 Squirrel
8 Squirrel
2 Squirrel

This, with REDIM PRESERVE doesn't:
Type test
 ii As integer
 aa As string length 15
End Type

Dim aray(20) As test
Dim integer i,j,k,l,m,n
Dim string a,b,c,d,e
Dim string animal(5)=("Dog","Cat","Squirrel","Ape","Giraffe","Hippo")
For i=0 To 9
aray(i).ii=i
aray(i).aa=animal(Int(Rnd*6))
Next i

ReDim PRESERVE aray(i) As test
Struct sort aray().aa

'Struct sort aray().aa,4

For i=0 To 9
 Print aray(i).ii;" "+aray(i).aa
Next i

> run
[15] ReDim PRESERVE aray(i) As test
Error : Only the last array index can be changed

(Or am I doing something wrong?)

~
Edited 2026-01-10 02:42 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10838
Posted: 05:01pm 09 Jan 2026
Copy link to clipboard 
Print this post

Is this what you would expect as output?
0
6 Ape
2 Ape
8 Ape
4 Cat
5 Cat
7 Cat
9 Dog
3 Giraffe
1 Hippo
 
JanVolk
Senior Member

Joined: 28/01/2023
Location: Netherlands
Posts: 290
Posted: 05:22pm 09 Jan 2026
Copy link to clipboard 
Print this post

Did a quick test.
The sound problem seems to be resolved. I've done various tests and haven't seen any issues yet.
Edit: Tested the problem. It's now resolved for MODE 2 through 5. So, only MODE 1 isn't working correctly with OPTION DEFAULT MODE 2.
Thanks in advance.

Even if I don't use TeraTerm, the buffer still overflows, which I've noticed in the last few versions. Has anything changed with com1, GP0, or GP1, or should I look for the problem in TeraTerm or my cables?

Kind regards,

Jan.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10838
Posted: 05:35pm 09 Jan 2026
Copy link to clipboard 
Print this post

  Quote  Even if I don't use TeraTerm, the buffer still overflows,

What buffer? When?
 
JanVolk
Senior Member

Joined: 28/01/2023
Location: Netherlands
Posts: 290
Posted: 05:59pm 09 Jan 2026
Copy link to clipboard 
Print this post

Peter,

I understand that the information is sent to two consoles: the HDMI port and the COM1 port, which then sends it back to Tera Term.
That information has to stay somewhere, and when I open Tera Term with my port, my screen sometimes fills with data from the PicoMite.
Should I configure something in Tera Term to prevent this from happening?

> nnected on channel 2
> nnected on channel 2
> nnected on channel 2
> nnected on channel 2
> nnected on channel 2
> nnected on channel 2
> nnected on channel 2
> nnected on channel 2
> nnected on channel 2
> nnected on channel 2
> nnected on channel 2
> nnected on channel 2

This is the kind of data I mean.

Kind regards,

Jan.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10838
Posted: 06:09pm 09 Jan 2026
Copy link to clipboard 
Print this post

V6.02.00RC4

PicoMiteV6.02.00RC4.zip

MMBasic_Structures_Manual.pdf

Fixes bug in playing mp3 after mod file
Fixes bug in editor showing the bottom magenta line in white
Enables REDIM to work with arrays of a structure
Adds regular expression support to STRUCT(FIND function - see manual attached
Reduces memory requirement for filled polygons
For VGA and HDMI versions mm.info(LCDPANEL) will now return the current mode
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3546
Posted: 07:24pm 09 Jan 2026
Copy link to clipboard 
Print this post

  matherp said  Is this what you would expect as output?
0
6 Ape
2 Ape
8 Ape
4 Cat
5 Cat
7 Cat
9 Dog
3 Giraffe
1 Hippo


Yes, except I should have REDIMed to i-1 rather than i (so the first "0" isn't there).

New version flashed, tested, and working.

Where else, I ask, can one make a suggestion and have it implemented in a release 1 hour and 8 minutes later? Thank you so much.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
JanVolk
Senior Member

Joined: 28/01/2023
Location: Netherlands
Posts: 290
Posted: 08:18pm 09 Jan 2026
Copy link to clipboard 
Print this post

MODE 1 with EDIT has now also been resolved with V6.02.00RC4.

Thanks for quickly resolving all the issues.

Have a nice weekend.
 
     Page 6 of 6    
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2026