some minor cleanup

This commit is contained in:
2023-12-08 17:48:05 -08:00
parent c2ff78e0dc
commit 1604378c32

View File

@@ -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;