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.
jovian Regular Member Joined: 16/04/2017 Location: AustraliaPosts: 63
Posted: 08:41am 10 Feb 2022
Copy link to clipboard
Print this post
hi all
fantastic to see MMbasic ported to pico.. thanks for all the great work! i've started a new project, i prototyped it on micromite and now I want to expand it using pico.
however, I'm getting some frustrating errors.
I want to use a pair of audio pins. However, "option audio GP2,GP3" returns Error : Pin 4 is in use or Error : Audio already configured
"setpin 4,off : setpin 5,off" seems to fix it once
however the next time I run the code, I get this error Error : Pin 4 is reserved on startup
Anyone know what to do?
Thanks Joe
flasherror Senior Member Joined: 07/01/2019 Location: United StatesPosts: 159
Posted: 12:20am 11 Feb 2022
Copy link to clipboard
Print this post
1. What does OPTION LIST display? 2. What is your Picomite firmware version? Are you running Picomite or Picomite VGA? 3. You posted this in "Guestbook" forum, better response if it was posted in "Microcontrollers". Edited 2022-02-11 10:23 by flasherror
jovian Regular Member Joined: 16/04/2017 Location: AustraliaPosts: 63
Posted: 01:38pm 22 Feb 2022
Copy link to clipboard
Print this post
hi Sorry for the delay in getting back to you and thank you for your help. I misunderstood how this is implemented. In the past I have used the option command in a program. It looks like the "option audio" command cannot be used in a program, as the first time it runs it configures, and the second time it runs, it returns an error. This is a pain in the arse because I have 50 picos to configure, and as I'm using them as embedded processors, they simply make no sound if I forget to pre-configure them. It would be fantastic if MM basic just ignored the option audio command if it was already configured. But at least it's working and I'm having fantastic time! Cheers Joe