Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/Example1_PlayFile/Example1_PlayFile.ino
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

//For boards that support software serial
#include "SoftwareSerial.h"
SoftwareSerial serialMP3(6, 4); //RX on Arduino connected to TX on MY1690's, TX on Arduino connected to the MY1690's RX pin
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)

//For boards that have multiple hardware serial ports
//HardwareSerial serialMP3(2); //Create serial port on ESP32: TX on 17, RX on 16
Expand Down
3 changes: 2 additions & 1 deletion src/SparkFun_MY1690_MP3_Library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ bool MY1690::begin(Stream &serialPort, uint8_t pin)
// getVersion returns the rough interpretation of this string in int form. See getNumberReponse for more info.
uint16_t MY1690::getVersion(void)
{
commandBytes[0] = MP3_COMMAND_GET_VERSION_NUMBER;
commandBytes[0] = MP3_COMMAND_PLAY;
// commandBytes[0] = MP3_COMMAND_GET_VERSION_NUMBER;
sendCommand(1);

return (getNumberResponse());
Expand Down