Closed lionaid closed 8 months ago
I think the confusion comes from the fact that the "Arduino" and "ESP32" examples that come with the library don't refer to whether you're targetting Arduino or ESP32 hardware, but rather whether you're using the Arduino IDE or ESP-IDF development environments. If you're writing code for an ESP32 board but using the Arduino IDE, you'd still use the "DYPlayerArduino.h" library, as follows:
#include "DYPlayerArduino.h"
DY::Player player(&Serial2);
void setup() {
// Protocol, Rx, Tx pins
Serial2.begin(9600, SERIAL_8N1, 16, 17);
player.playSpecified(1);
}
oh great. I totally didn't get that 😃
Hi there,
thank you very much for this great work of implementing the communication protocol.
I just tried to use your library with the AI Thinker ESP32-CAM board and the Espressif Arduino core for the ESP32 in the Arduino IDE 2.1.0 on macOS 12.3.1.
However, a minimal example (simplified from your esp32 example), using only the creation of a
player
variable with yourDY::Player
class (see below) already fails with this error message:DY_minimal_example.ino
I would be super happy if you could give me any hints on what the problem might be.
Cheers! Lion