Help with #include "DYPlayerArduino.h"

Hope this is posted to the right category...

I am trying to use a sketch that includes the following line:
#include "DYPlayerArduino.h"

I went here: https://github.com/SnijderC/dyplayer

and found the file "library.json", downloaded it, and it looks like this:

{
"name": "DYPlayer",
"keywords": "MP3, player, DY-SV17F, DY-SV8F, DY-HV20T, DY-HV8F, DY-HV20T, UART",
"description": "Abstracton for DY-XXXX mp3 player modules over UART.",
"homepage": "GitHub - SnijderC/dyplayer: Abstracton for DY-XXXX mp3 player modules over UART.",
"repository": {
"type": "git",
"url": "GitHub - SnijderC/dyplayer: Abstracton for DY-XXXX mp3 player modules over UART.",
"branch": "release"
},
"version": "4.0.0",
"authors": {
"name": "Chris Snijder",
"url": "SnijderC (Chris) · GitHub"
},
"frameworks": "",
"platforms": "
"
}

Where do I go from here? Is "library.json" the same as "DYPlayerArduino.h" ?

no
You should download all library code rather than one file. See this about how to download from github:
https://sites.northwestern.edu/researchcomputing/resources/downloading-from-github/

After downloading library as .zip file, you should install it in Arduino IDE as explained in "Installing arduino libraries tutorial in chapter "Manual installation"

1 Like

Thank you b707 !

It is so simple when you know how to do it. I find Github to be not very user friendly.

Thanks again.

So is the problem solved?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.