Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:33 08 Feb 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.00.02 betas

     Page 12 of 12    
Author Message
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2290
Posted: 03:23pm 05 Feb 2025
Copy link to clipboard 
Print this post

try
b:
play mp3 "file name
 
cosmic frog
Senior Member

Joined: 09/02/2012
Location: United Kingdom
Posts: 298
Posted: 03:40pm 05 Feb 2025
Copy link to clipboard 
Print this post

  stanleyella said  try
b:
play mp3 "file name


PLAY MP3 "filename" works as it should. It's the other things that don't.

Thanks.

Dave.
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4528
Posted: 04:07pm 05 Feb 2025
Copy link to clipboard 
Print this post

@Peter,

When you get back, could you check the "compiler optimization" again. Games like "Flappy Bird" and "Petscii Robots" crash (*) when video layers are used in 2040 VGA.

Thank you,

Volhout

(*) Even USB disconnects from PC (roboot).
PicomiteVGA PETSCII ROBOTS
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9512
Posted: 05:29pm 05 Feb 2025
Copy link to clipboard 
Print this post

Playing a directory should work if you set the drive first. I keep meaning to block it cross drives.
B:
Play MP3 "dirname"
 
cosmic frog
Senior Member

Joined: 09/02/2012
Location: United Kingdom
Posts: 298
Posted: 06:45pm 05 Feb 2025
Copy link to clipboard 
Print this post

  matherp said  Playing a directory should work if you set the drive first. I keep meaning to block it cross drives.
B:
Play MP3 "dirname"


Error : Display not configured
 
cosmic frog
Senior Member

Joined: 09/02/2012
Location: United Kingdom
Posts: 298
Posted: 07:09pm 05 Feb 2025
Copy link to clipboard 
Print this post

B:
PLAY MP3 "dirname"

Just reflashed with the VGA Version and got this error - "Error: Invalid address - resetting".

Run it again and it came up with this - "Error : VS1053 not properly installed!"

> option list
PicoMiteVGA MMBasic RP2350A Edition V6.00.02b8
OPTION FLASH SIZE 4194304
OPTION KEYBOARD US
OPTION CPUSPEED (KHz) 252000
OPTION SDCARD GP13, GP10, GP11, GP12
OPTION AUDIO GP6,GP7', ON PWM CHANNEL 3

Dave.
Edited 2025-02-06 05:11 by cosmic frog
 
electricat

Senior Member

Joined: 30/11/2020
Location: Lithuania
Posts: 192
Posted: 08:02pm 05 Feb 2025
Copy link to clipboard 
Print this post

@Peter,

Take a look at this problem i reported about MMB4W here https://www.thebackshed.com/forum/ViewTopic.php?FID=16&TID=16422&LastEntry=Y#233706#233706

I know, it`s not latest beta, but moved to continue my project on HDMI/USB/RP2350 02b4 and it seems it does not input whole text line if meets coma symbol too ->> ,

Please check if I messed something, or it is real firmware prob.
Thx.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9512
Posted: 08:45pm 05 Feb 2025
Copy link to clipboard 
Print this post

If changing version clear the flash completely
 
cosmic frog
Senior Member

Joined: 09/02/2012
Location: United Kingdom
Posts: 298
Posted: 08:57pm 05 Feb 2025
Copy link to clipboard 
Print this post

Peter,

I think I may have found the problem. It seems if the folder has more than 30ish tunes in it, it will fail with "Error : Display not configured"
Or it may be falling over when it finds an MP3 that is too large. not sure.

But it seems to be working if the folder contains less than 30 songs.

Dave.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9512
Posted: 09:26pm 05 Feb 2025
Copy link to clipboard 
Print this post

Thanks for the report. I will add an error message if the directory contains more files than the firmware can handle.
 
cosmic frog
Senior Member

Joined: 09/02/2012
Location: United Kingdom
Posts: 298
Posted: 09:35pm 05 Feb 2025
Copy link to clipboard 
Print this post

  matherp said  Thanks for the report. I will add an error message if the directory contains more files than the firmware can handle.


Let me do some further tests first to make sure it is that and I'll get back to you.

Dave.

Footnote added 2025-02-07 20:28 by cosmic frog
Hi Peter.

After further tests it seems that more than 33 songs in a folder will cause the problem. But, I think this is dependent on the file size. So if the mp3's are short or small in size then you "should" be able to get more in a folder.
I think this problem needs to be tested by other Back Shedders just to confirm my findings.

Many thanks.

Dave.
 
JanVolk
Senior Member

Joined: 28/01/2023
Location: Netherlands
Posts: 177
Posted: 05:29pm 06 Feb 2025
Copy link to clipboard 
Print this post

Did some tests and played with PIO assembler.
Works much faster and has a better overview and you can start it immediately after editing. Test on an RP2350A.
It works fine on PicoMite 2. It doesn't work on the WebMite.

Greetings,

Jan

PIO ASSEMBLE V6.00.02b8
With the latest PicoMite version you can enter PIO ASSEMBLE as standard.  RP2350A Edition  

That's how it used to be.
PIO assemble 1,".program NES"       'A program needs a name.
PIO assemble 1,".side_set 2"        'Use 2 bits for side set, 3 for delay
PIO assemble 1,".line 0"            'Start code on line 0.
PIO assemble 1,"SET pindirs,&b11"   'Set GP0,GP1 output, side GP0,GP1 Low.
PIO assemble 1,".wrap target"       'Wrap target = Top of the Loop
PIO assemble 1,"IN null,32 side 2"  'Set ISR to 0, GP1 high (load),GP0 Low
PIO assemble 1,"SET X,7 side 0"     'Set X counter at 7, GP0,GP1 low.
PIO assemble 1,"loop:"              'Inner loop label.
PIO assemble 1,"IN pins, 1 side 0"  'Slide 1 data bit in,keep GP0,GP1 low  
PIO assemble 1,"JMP X-- loop side 1"'JMP to loop, dec. X, GP0 high(clock)
PIO assemble 1,"PUSH side 0 [7]"    'Now X=0, PUSH result in FIFO, delay7
PIO assemble 1,".wrap"              'End outside Loop, repeat.
PIO assemble 1,".end program list"  'End program, list result.

Copy the above from the manual into MMEdit and send it to the PicoMite.
Make any necessary adjustments in EDIT. Place PIO assemble 1 on the first line and delete it on the remaining lines as well as any " on each line. Change the line .side_set 2 to .side set 2 and line loop: to .label nes: and the line JMP X-- loop side 1 to JMP X-- nes side 1
The assembler program can now be saved with F1 or F2.

The program reads a NES controller (SPI) connected to the Raspberry Pi Pico.
The NES controller consists of a HEF4021 slide register connected to 8 push button switches.

> edit
PIO assembly 1
.program NES             'A program needs a name.
.side set 2              'Uses 2 bits for side set, 3 for delay
.line 0                  'Start code on line 0.
SET pindirs,&b11         'Set GP0,GP1 output, side GP0,GP1 low
.wrap target             'Wrap target = Top of the nes barrel
IN null,32 side 2        'Set ISR to 0, GP1 high (load), GP0 low
SET X,7 side 0           'Set X counter to 7, GP0,GP1 low
.label nes:              'Inner nes label.
IN pins, 1 side 0        'Slide 1 data bit in, keep GP0,GP1 low
JMP X-- nes side 1       'JMP to nes, dec. X, GP0 high(clock)
PUSH side 0 [7]          'Now X=0, PUSH result in FIFO, delay 7
.wrap                    'End outside nes, repeat.
.end program list        'End program, List=program, Run=start program

> run
0: E083
1: 5060
2: E027
3: 4001
4: 0843
5: 8700
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9512
Posted: 05:45pm 06 Feb 2025
Copy link to clipboard 
Print this post

PIO 1 is used by the CWY43 on the Website. try PIO 0
 
JanVolk
Senior Member

Joined: 28/01/2023
Location: Netherlands
Posts: 177
Posted: 05:53pm 06 Feb 2025
Copy link to clipboard 
Print this post

Peter,

Thanks for the additional information.

Greetings,

Jan
 
JanVolk
Senior Member

Joined: 28/01/2023
Location: Netherlands
Posts: 177
Posted: 06:17pm 06 Feb 2025
Copy link to clipboard 
Print this post

Peter,

It works now.

Greetings,

Jan

WebMite MMBasic RP2350A Edition V6.00.02b8
Copyright 2011-2025 Geoff Graham
Copyright 2016-2025 Peter Mather

> list
PIO assemble 0
.program NES        
.side set 2          
.line 0              
Set of pindirs,&b11      
.wrap target        
In null,32 side 2    
Set X.7 side 0        
.label nes:          
In pins, 1 side 0    
Jmp X-- nes side 1    
Push side 0 [7]      
.wrap                
.end program list    

> run
0: E083
1: 5060
2: E027
3: 4001
4: 0843
5: 8700
>
And RP2040 Edition
Edited 2025-02-07 05:02 by JanVolk
 
     Page 12 of 12    
Print this page


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

© JAQ Software 2025