I'm having issues uploading example code for this specific library. I have no issues using the DFPlayer Mini. The errors are as follows
/Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.cpp: In member function 'DFRobot_DF1201S::ePlayMode_t DFRobot_DF1201S::getPlayMode()':
/Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.cpp:65:21: error: ambiguous overload for 'operator=' (operand types are 'arduino::String' and 'char')
playMode = str[10];
^
In file included from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/IPAddress.h:24:0,
from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/ArduinoAPI.h:30,
from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/Arduino.h:4,
from /Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.h:17,
from /Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.cpp:12:
/Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/String.h:97:11: note: candidate: arduino::String& arduino::String::operator=(const arduino::String&) <near match>
String & operator = (const String &rhs);
^~~~~~~~
/Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/String.h:97:11: note: conversion of argument 1 would be ill-formed:
/Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.cpp:65:21: error: conversion from 'char' to 'const arduino::String' is ambiguous
playMode = str[10];
^
In file included from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/IPAddress.h:24:0,
from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/ArduinoAPI.h:30,
from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/Arduino.h:4,
from /Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.h:17,
from /Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.cpp:12:
/Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/String.h:74:2: note: candidate: arduino::String::String(const arduino::__FlashStringHelper*) <near match>
String(const __FlashStringHelper *str);
^~~~~~
/Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/String.h:74:2: note: conversion of argument 1 would be ill-formed:
/Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.cpp:65:21: error: invalid conversion from 'char' to 'const arduino::__FlashStringHelper*' [-fpermissive]
playMode = str[10];
^
In file included from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/IPAddress.h:24:0,
from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/ArduinoAPI.h:30,
from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/Arduino.h:4,
from /Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.h:17,
from /Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.cpp:12:
/Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/String.h:70:2: note: candidate: arduino::String::String(const char*) <near match>
String(const char *cstr = "");
^~~~~~
/Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/String.h:70:2: note: conversion of argument 1 would be ill-formed:
/Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.cpp:65:21: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
playMode = str[10];
^
In file included from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/IPAddress.h:24:0,
from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/ArduinoAPI.h:30,
from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/Arduino.h:4,
from /Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.h:17,
from /Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.cpp:12:
/Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/String.h:98:11: note: candidate: arduino::String& arduino::String::operator=(const char*) <near match>
String & operator = (const char *cstr);
^~~~~~~~
/Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/String.h:98:11: note: conversion of argument 1 would be ill-formed:
/Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.cpp:65:21: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
playMode = str[10];
^
In file included from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/IPAddress.h:24:0,
from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/ArduinoAPI.h:30,
from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/Arduino.h:4,
from /Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.h:17,
from /Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.cpp:12:
/Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/String.h:99:11: note: candidate: arduino::String& arduino::String::operator=(const arduino::__FlashStringHelper*) <near match>
String & operator = (const __FlashStringHelper *str);
^~~~~~~~
/Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/String.h:99:11: note: conversion of argument 1 would be ill-formed:
/Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.cpp:65:21: error: invalid conversion from 'char' to 'const arduino::__FlashStringHelper*' [-fpermissive]
playMode = str[10];
^
In file included from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/IPAddress.h:24:0,
from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/ArduinoAPI.h:30,
from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/Arduino.h:4,
from /Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.h:17,
from /Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.cpp:12:
/Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/String.h:100:11: note: candidate: arduino::String& arduino::String::operator=(arduino::String&&) <near match>
String & operator = (String &&rval);
^~~~~~~~
/Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/String.h:100:11: note: conversion of argument 1 would be ill-formed:
/Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.cpp:65:21: error: conversion from 'char' to 'arduino::String' is ambiguous
playMode = str[10];
^
In file included from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/IPAddress.h:24:0,
from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/ArduinoAPI.h:30,
from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/Arduino.h:4,
from /Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.h:17,
from /Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.cpp:12:
/Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/String.h:74:2: note: candidate: arduino::String::String(const arduino::__FlashStringHelper*) <near match>
String(const __FlashStringHelper *str);
^~~~~~
/Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/String.h:74:2: note: conversion of argument 1 would be ill-formed:
/Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.cpp:65:21: error: invalid conversion from 'char' to 'const arduino::__FlashStringHelper*' [-fpermissive]
playMode = str[10];
^
In file included from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/IPAddress.h:24:0,
from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/ArduinoAPI.h:30,
from /Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/Arduino.h:4,
from /Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.h:17,
from /Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.cpp:12:
/Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/String.h:70:2: note: candidate: arduino::String::String(const char*) <near match>
String(const char *cstr = "");
^~~~~~
/Users/trentonlabiche/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.3.2/cores/arduino/api/String.h:70:2: note: conversion of argument 1 would be ill-formed:
/Users/trentonlabiche/Documents/Arduino/libraries/DFRobot_DF1201S/src/DFRobot_DF1201S.cpp:65:21: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
playMode = str[10];
^
exit status 1
Compilation error: exit status 1