Skip to content

Commit a15d991

Browse files
Merge pull request #1 from sparkfun/main
Commit to previous version
2 parents 49557e2 + c9c386e commit a15d991

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/Example1_PlayFile/Example1_PlayFile.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
//For boards that support software serial
2626
#include "SoftwareSerial.h"
27-
SoftwareSerial serialMP3(6, 4); //RX on Arduino connected to TX on MY1690's, TX on Arduino connected to the MY1690's RX pin
27+
SoftwareSerial serialMP3(5, 2); //RX on Arduino connected to TX on MY1690's, TX on Arduino connected to the MY1690's RX pin; format: SoftwareSerial mySerial(rx, tx)
2828

2929
//For boards that have multiple hardware serial ports
3030
//HardwareSerial serialMP3(2); //Create serial port on ESP32: TX on 17, RX on 16

src/SparkFun_MY1690_MP3_Library.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ bool MY1690::begin(Stream &serialPort, uint8_t pin)
4444
// getVersion returns the rough interpretation of this string in int form. See getNumberReponse for more info.
4545
uint16_t MY1690::getVersion(void)
4646
{
47-
commandBytes[0] = MP3_COMMAND_GET_VERSION_NUMBER;
47+
commandBytes[0] = MP3_COMMAND_PLAY;
48+
// commandBytes[0] = MP3_COMMAND_GET_VERSION_NUMBER;
4849
sendCommand(1);
4950

5051
return (getNumberResponse());

0 commit comments

Comments
 (0)