Hello, I’m a beginner to arduino coding and have been trying to program an arduino catalex (MD_YX5300) using majicdesigns library for it. I’m trying to use a shake sensor to play an mp3 file off of the catalex but my current code doesn’t work. Please assist me in trying to do this as I suspect I have no clue how to do this properly.
This is the code so far:
#include <MD_YX5300.h>
Int sensor;
const short rx = 6;
const short tx = 5;
MD_YX5300 mp3(rx, tx);
At GitHub where most of all Arduino-libraries have their repository
there is a subflder examples. You can use these examples as a starting point. I would recommend the example-code
"MD_YX5300_Test"
Tinkering with microcontrollers has always two sides:
hardware and
software. You should test your hardware with a democode that is well known for that the code works.
If you have a question about the democode even if it is the first line of the democode. You are welcome to ask all these questions.
By asking such a question about a line of code of a program you
show that you really deal with it. If this can be seen you will always get answers.