i recently got the new uno r4 wifi and i am trying to run the player_simple vs1053 example sketch but keep getting an error message that reads
In file included from /private/var/folders/7w/mhv5s7ws3plgn51z1s3lvcyc0000gn/T/.arduinoIDE-unsaved20231029-21592-g5ew39.jj6i9/player_simple/player_simple.ino:17:0:
/Users/[redacted my private info]/Documents/Arduino/libraries/Adafruit_VS1053_Library/Adafruit_VS1053.h:17:10: fatal error: wiring_private.h: No such file or directory
#include "wiring_private.h"
^~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: exit status 1
i am running arduino IDE 2.1.1 and just downloaded the latest github library for the vs1053 codec, i even tried editing the .h file to comment out the #include "wiring_private.h" line but that didn't work at all
i cannot figure out what this means and can't seem to find a post particular to my issue and apologies if it has.
thank you so much for such a quick response!
i took your advice and it did get rid of the wiring_private.h error!! ty!
but now shows:
In file included from /private/var/folders/7w/mhv5s7ws3plgn51z1s3lvcyc0000gn/T/.arduinoIDE-unsaved20231029-21592-g5ew39.jj6i9/player_simple/player_simple.ino:17:0:
/Users/Documents/Arduino/libraries/Adafruit_VS1053_Library/Adafruit_VS1053.h:15:0: error: unterminated #if
#if !defined(ARDUINO_STM32_FEATHER)
/Users/Documents/Arduino/libraries/Adafruit_VS1053_Library/Adafruit_VS1053.h:5:0: error: unterminated #ifndef
#ifndef ADAFRUIT_VS1053_H
exit status 1
Compilation error: exit status 1
i am going to read more into this on the link you sent right now
just an update on this, i re-downloaded and installed the adafruit vs1053 library right now and edited the wiring_private.h lines and am now getting completely new errors. any help is appreciated, also if anybody knows an mp3 board that is compatible with the r4 wifi please let me know i have a final project due soon
In file included from /Users//Documents/Arduino/libraries/Adafruit_VS1053_Library/Adafruit_VS1053.h:9:0,
from /Users//Documents/Arduino/libraries/Adafruit_VS1053_Library/Adafruit_VS1053.cpp:26:
/Users//Documents/Arduino/libraries/Adafruit_VS1053_Library/Adafruit_VS1053.cpp: In constructor 'Adafruit_VS1053::Adafruit_VS1053(int8_t, int8_t, int8_t, int8_t, int8_t, int8_t, int8_t)':
/Users//Library/Arduino15/packages/arduino/hardware/renesas_uno/1.0.5/cores/arduino/Arduino.h:75:92: error: cannot convert 'volatile uint16_t* {aka volatile short unsigned int*}' to 'PortReg* {aka volatile long unsigned int*}' in assignment
#define portOutputRegister(port) &(((R_PORT0_Type *)IOPORT_PRV_PORT_ADDRESS(port))->PODR)
^
/Users//Documents/Arduino/libraries/Adafruit_VS1053_Library/Adafruit_VS1053.cpp:366:16: note: in expansion of macro 'portOutputRegister'
clkportreg = portOutputRegister(digitalPinToPort(_clk));
^~~~~~~~~~~~~~~~~~
/Users//Library/Arduino15/packages/arduino/hardware/renesas_uno/1.0.5/cores/arduino/Arduino.h:76:92: error: cannot convert 'const volatile uint16_t* {aka const volatile short unsigned int*}' to 'PortReg* {aka volatile long unsigned int*}' in assignment
#define portInputRegister(port) &(((R_PORT0_Type *)IOPORT_PRV_PORT_ADDRESS(port))->PIDR)
^
/Users//Documents/Arduino/libraries/Adafruit_VS1053_Library/Adafruit_VS1053.cpp:368:17: note: in expansion of macro 'portInputRegister'
misoportreg = portInputRegister(digitalPinToPort(_miso));
^~~~~~~~~~~~~~~~~
/Users//Library/Arduino15/packages/arduino/hardware/renesas_uno/1.0.5/cores/arduino/Arduino.h:75:92: error: cannot convert 'volatile uint16_t* {aka volatile short unsigned int*}' to 'PortReg* {aka volatile long unsigned int*}' in assignment
#define portOutputRegister(port) &(((R_PORT0_Type *)IOPORT_PRV_PORT_ADDRESS(port))->PODR)
^
/Users//Documents/Arduino/libraries/Adafruit_VS1053_Library/Adafruit_VS1053.cpp:370:17: note: in expansion of macro 'portOutputRegister'
mosiportreg = portOutputRegister(digitalPinToPort(_mosi));
^~~~~~~~~~~~~~~~~~
exit status 1
Compilation error: exit status 1
I've got the same problem. Super sucks that the Uno R4 compatibility chart shows that the music maker shield is supported. I guess you can't expect much from $10 toys. Total waste of money. BTW, here is where it says it supposed to be supported https://docs.arduino.cc/tutorials/uno-r4-minima/shield-compatibility
Hmm, it looks like someone is working on it. I just tried downloading that guys branch and installed the library, but it still fails. Correction, it works with Uno R4 wifi, but not minima.
In constructor 'Adafruit_VS1053::Adafruit_VS1053(int8_t, int8_t, int8_t, int8_t, int8_t, int8_t, int8_t) blah blah blah, 100 more lines of errors.