Hi there everyone - absolute first time to Arduino so hoping to reach out for help.
My goal - I currently have a YX5300 purchased from jaycar along with a Arduino Nano board. All I want it to do is play a single mp3 on a single cycle as soon as it powers up.
So far I've downloaded the IDE, connected everything up using pins 10/11 as per the jaycar manual.
I have installed Majic Designs library etc.
Im having trouble getting the code to instruct the Arduino to carry out the above function.
mind you this is all so foreign to me so I am trying to learn this all from scratch.
the module I am using can be found in this link: https://www.jaycar.com.au/medias/sys_master/images/images/9505689698334/XC3748-manualMain.pdf
when I input the code into the IDE I get multiple errors such as:
Arduino: 1.8.13 (Windows 10), Board: "Arduino Nano, ATmega328P"
C:\Users\Sa'ad\Documents\Arduino\sketch_apr26b\sketch_apr26b.ino: In function 'void setup()':
sketch_apr26b:10:21: error: no matching function for call to 'MD_YX5300::MD_YX5300(const short int&, const short int&)'
MD_YX5300 mp3(rx, tx);
^
In file included from C:\Users\Sa'ad\Documents\Arduino\sketch_apr26b\sketch_apr26b.ino:1:0:
C:\Users\Sa'ad\Documents\Arduino\libraries\MD_YX5300-main\src/MD_YX5300.h:460:3: note: candidate: MD_YX5300::MD_YX5300(Stream&)
MD_YX5300(Stream& S) :
^~~~~~~~~
C:\Users\Sa'ad\Documents\Arduino\libraries\MD_YX5300-main\src/MD_YX5300.h:460:3: note: candidate expects 1 argument, 2 provided
In file included from C:\Users\Sa'ad\Documents\Arduino\sketch_apr26b\sketch_apr26b.ino:1:0:
C:\Users\Sa'ad\Documents\Arduino\libraries\MD_YX5300-main\src/MD_YX5300.h:383:7: note: candidate: constexpr MD_YX5300::MD_YX5300(const MD_YX5300&)
class MD_YX5300
^~~~~~~~~
C:\Users\Sa'ad\Documents\Arduino\libraries\MD_YX5300-main\src/MD_YX5300.h:383:7: note: candidate expects 1 argument, 2 provided
sketch_apr26b:12:1: error: a function-definition is not allowed here before '{' token
{
^
sketch_apr26b:24:1: error: a function-definition is not allowed here before '{' token
{
^
Multiple libraries were found for "MD_YX5300.h"
Used: C:\Users\Sa'ad\Documents\Arduino\libraries\MD_YX5300-main
Not used: C:\Users\Sa'ad\Documents\Arduino\libraries\MD_YX5300-1.3.1
exit status 1
no matching function for call to 'MD_YX5300::MD_YX5300(const short int&, const short int&)'
Is there anyone out there willing to help with what could be a very simple code?
i believe the instruction is for Set single cycle play
7E FF 06 19 00 00 00 EF Start up single cycle play
alternatively - any recommendations to learn this on my own are also welcomed!
Thankyou!