seeeduino serial mp3 player

Hi!
im trying to make a song sound in a seeeduino serial mp3 player, and I’ m begining to become desperate. I’ve searched in a lot of forums and:

  1. newsoftserial library won’t work
  2. SoftwareSerial interferes with the Serial
  3. this code:
#include <SoftwareSerial.h>vc 
#include <Arduino.h>

#define rxPin 0
#define txPin 1


char incomingByte;  // for incoming serial data
boolean isPlaying = false;



void setup()  {
  // define pin modes for tx, rx, led pins:
  pinMode(rxPin, INPUT);
  pinMode(txPin, OUTPUT);


Serial.begin(9600);

pinMode(8, INPUT);



}




void loop() {


    if ((digitalRead(8) == HIGH) && (isPlaying==false)) {
        playAudio();
        
    }
    
    if ((digitalRead(8) == HIGH) && (isPlaying==true)) {
      fadeOut();
      
    }

   //READ RESPONSE FROM  MP3 player
    // send data only when you receive data:
  while (Serial.available() > 0) {

  // read the incoming byte:
  incomingByte = Serial.read();
                
  // say what you got:
       
     

  }


}

void playAudio() {
Serial.flush();
Serial.println("PF: omfg");//command: PF=PlayFile omfg=name of mp3 file

isPlaying = true;
delay(500);
}

void fadeOut() {
  //Fade out
   Serial.flush();
   Serial.println("FO");

   delay(1000);
   // Stop file
   Serial.flush();
   Serial.println("SP");
   
  isPlaying = false;
}

pls help!!! :confused: :confused: :confused:

  1. SoftwareSerial interferes with the Serial

No, it doesn't, IF you don't try to do SoftwareSerial on the hardware serial pins.

  pinMode(rxPin, INPUT);
  pinMode(txPin, OUTPUT);

These are the hardware serial pins. Do NOT f**k with them when doing hardware serial.

What are you expecting to read from the MP3 player? What are you expecting to do with that data?

What does that code do that you don't want? What does it not do that you do want?

Where is the LINK to the hardware? (NOT just a URL that we need to copy and paste; a link, using the proper icon above).