I'm trying to compile the 'DFPlayer_ESP8266_HW_Serial.ino' example, but Arduino IDE 2.2.1 fails with tthe following output:
C:\Users\kvark\OneDrive\Arduino\libraries\DFPlayer-ESP\examples\DFPlayer_ESP8266_HW_Serial\DFPlayer_ESP8266_HW_Serial.ino: In function 'void setup()':
C:\Users\kvark\OneDrive\Arduino\libraries\DFPlayer-ESP\examples\DFPlayer_ESP8266_HW_Serial\DFPlayer_ESP8266_HW_Serial.ino:72:44: error: no matching function for call to 'USBCDC::begin(int, SerialConfig)'
Serial.begin(MP3_SERIAL_SPEED, SERIAL_8N1); //hardware serial on GPIO01(TX) & GPIO03(RX) after boot
^
In file included from C:\Users\kvark\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.13\cores\esp32/USB.h:21,
from C:\Users\kvark\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.13\cores\esp32/HardwareSerial.h:201,
from C:\Users\kvark\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.13\cores\esp32/Arduino.h:184,
from C:\Users\kvark\AppData\Local\Temp\arduino\sketches\39004B9F2A7C6CE6203C16BE7839C87D\sketch\DFPlayer_ESP8266_HW_Serial.ino.cpp:1:
C:\Users\kvark\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.13\cores\esp32/USBCDC.h:70:10: note: candidate: 'void USBCDC::begin(long unsigned int)'
void begin(unsigned long baud=0);
^~~~~
C:\Users\kvark\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.13\cores\esp32/USBCDC.h:70:10: note: candidate expects 1 argument, 2 provided
C:\Users\kvark\OneDrive\Arduino\libraries\DFPlayer-ESP\examples\DFPlayer_ESP8266_HW_Serial\DFPlayer_ESP8266_HW_Serial.ino:76:10: error: 'class USBCDC' has no member named 'swap'
Serial.swap(); //now hardware serial on GPIO15(TX) & GPIO13(RX)
^~~~
C:\Users\kvark\OneDrive\Arduino\libraries\DFPlayer-ESP\examples\DFPlayer_ESP8266_HW_Serial\DFPlayer_ESP8266_HW_Serial.ino:89:10: error: 'class USBCDC' has no member named 'swap'
Serial.swap(); //now hardware serial on GPIO01(TX) & GPIO03(RX)
^~~~
C:\Users\kvark\OneDrive\Arduino\libraries\DFPlayer-ESP\examples\DFPlayer_ESP8266_HW_Serial\DFPlayer_ESP8266_HW_Serial.ino: In function 'void loop()':
C:\Users\kvark\OneDrive\Arduino\libraries\DFPlayer-ESP\examples\DFPlayer_ESP8266_HW_Serial\DFPlayer_ESP8266_HW_Serial.ino:103:10: error: 'class USBCDC' has no member named 'swap'
Serial.swap(); //now hardware serial on GPIO15(TX) & GPIO13(RX)
^~~~
C:\Users\kvark\OneDrive\Arduino\libraries\DFPlayer-ESP\examples\DFPlayer_ESP8266_HW_Serial\DFPlayer_ESP8266_HW_Serial.ino:112:7: error: 'class DFPlayer' has no member named 'setResponse'; did you mean '_getResponse'?
mp3.setResponse(true); //enable=request feedback to return not only errors but also OK statuses
^~~~~~~~~~~
_getResponse
C:\Users\kvark\OneDrive\Arduino\libraries\DFPlayer-ESP\examples\DFPlayer_ESP8266_HW_Serial\DFPlayer_ESP8266_HW_Serial.ino:116:10: error: 'class USBCDC' has no member named 'swap'
Serial.swap(); //now hardware serial on GPIO01(TX) & GPIO03(RX)
^~~~
C:\Users\kvark\OneDrive\Arduino\libraries\DFPlayer-ESP\examples\DFPlayer_ESP8266_HW_Serial\DFPlayer_ESP8266_HW_Serial.ino:121:10: error: 'class USBCDC' has no member named 'swap'
Serial.swap(); //now hardware serial on GPIO15(TX) & GPIO13(RX)
^~~~
C:\Users\kvark\OneDrive\Arduino\libraries\DFPlayer-ESP\examples\DFPlayer_ESP8266_HW_Serial\DFPlayer_ESP8266_HW_Serial.ino:129:10: error: 'class USBCDC' has no member named 'swap'
Serial.swap(); //now hardware serial on GPIO01(TX) & GPIO03(RX)
^~~~
exit status 1
Compilation error: no matching function for call to 'USBCDC::begin(int, SerialConfig)'
Hello all.
I'm trying to compile the 'DFPlayer_ESP8266_HW_Serial.ino' example, but Arduino IDE 2.2.1 fails with tthe following output: