Closed domconscious closed 1 year ago
Can you post the snippet where you initialize your Player object?
// Initialise the player on uart2, pins TX: 16, RX: 17.
DY::Player player(UART_NUM_2, 16, 17);
Unless I am missing something else under setup? I am basing this off of the examples/esp32/PlaySounds.cpp
I believe I've figured this out on my own. This example was not meant for Arduino but only for ESP-IDF.
For the ESP32 specifically I am trying to sort out how to use an alternative serial port in order to retain the standardised serial output for troubleshooting. Any help there would be awesome.
Looks like you intend to use it with Arduino, then look at the SoftwareSerial example. Then you can use pins that are not the hardware Serial port and thus you can use the hardware serial port for debugging.
I am attempting to use the "DYPlayerESP32.h" module on an ESP32 Wrover but get a compile issue below.
It seems to choke on this line: DY::Player player(UART_NUM_2, 16, 17);
Any help would be off assistance!