![]() |
Forum Index : Microcontroller and PC projects : PicoMite: How to determine if audio is configured ?
Author | Message | ||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4318 |
Hi folks, There is a user of Z-MIM on the PicoMiteVGA reporting this error when the "bell" plays: [650] If type% And con.SCREEN% Then Play Tone 329.63,329.63,100 Error : Audio not enabled This is on a "reference board" without audio. Is there a way to determine if audio is enabled/configured or do I need to ON ERROR SKIP ? Best wishes, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10371 |
mm.info(option audio) } else if(checkstring(tp, (unsigned char *)"AUDIO")){ if(Option.AUDIO_L)strcpy((char *)sret,"PWM"); else if(Option.AUDIO_MISO_PIN)strcpy((char *)sret,"VS1053"); else if(Option.AUDIO_CLK_PIN)strcpy((char *)sret,"SPI"); else if(Option.audio_i2s_bclk)strcpy((char *)sret,"I2S"); else strcpy((char *)sret,"NONE"); CtoM(sret); targ=T_STR; return; Note I2S not included in current releases - will return NONE Edited 2025-08-20 19:16 by matherp |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 5166 |
Hi Tom, MM.INFO(OPTION AUDIO) returns NONE when no AUDIO Volhout EDIT: response crosses Peters. Edited 2025-08-20 19:16 by Volhout PicomiteVGA PETSCII ROBOTS |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4318 |
Super, thank you. Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |