some minor cleanup
This commit is contained in:
@@ -27,8 +27,6 @@ DFPlayer - A Mini MP3 Player For Arduino
|
||||
SoftwareSerial softSerial(/*rx =*/4, /*tx =*/5);
|
||||
#define FPSerial softSerial
|
||||
#elif (defined(ARDUINO_attinyxy4))
|
||||
// #include <SoftwareSerial.h>
|
||||
// SoftwareSerial softSerial(PIN_PB2, PIN_PB3);
|
||||
#define FPSerial Serial
|
||||
#else
|
||||
#define FPSerial Serial1
|
||||
@@ -56,7 +54,6 @@ SoftwareSerial softSerial(/*rx =*/4, /*tx =*/5);
|
||||
Ultrasonic rf(TRIGGER, ECHO, 40000UL);
|
||||
#endif
|
||||
|
||||
// bool last=true;
|
||||
bool playing=true;
|
||||
bool in_range=false;
|
||||
DFRobotDFPlayerMini myDFPlayer;
|
||||
|
||||
Reference in New Issue
Block a user