Open Jeff-Haas opened 1 year ago
In SoftwareSerial.ino, the order of includes needs to be updated.
Current version: #include <Arduino.h> #include "DYPlayerArduino.h" #include <SoftwareSerial.h>
#include <Arduino.h>
#include "DYPlayerArduino.h"
#include <SoftwareSerial.h>
This will get an error on compilation in Arduino IDE:
Compilation error: 'SoftwareSerial' does not name a type; did you mean 'HardwareSerial'?
The sketch needs to be edited so the includes are in this order: #include <Arduino.h> #include <SoftwareSerial.h> #include "DYPlayerArduino.h"
In SoftwareSerial.ino, the order of includes needs to be updated.
Current version:
#include <Arduino.h>
#include "DYPlayerArduino.h"
#include <SoftwareSerial.h>
This will get an error on compilation in Arduino IDE:
The sketch needs to be edited so the includes are in this order:
#include <Arduino.h>
#include <SoftwareSerial.h>
#include "DYPlayerArduino.h"