connect ds3231 and dfplayer to mega [SOLVED]

hi …

im using ds3231 and dfplayer and mega2560
connected ds3231 to SDA and SCL
connected dfplayer to tx0 and rx0

if i use them lonely they work correctly but when i use them together they dont work

libraries are

dfplayer : #include <SoftwareSerial.h> and #include <DFPlayer_Mini_Mp3.h>
ds3231 : #include <Wire.h> and #include <DS3231.h>

i need it … please help :confused:

I found the solution

we should define RX , TX

for e.g i defined them 8,9 //RX,TX

HERE THE CODES :

#include <DFPlayer_Mini_Mp3.h>
SoftwareSerial mySerial(8, 9); // RX, TX

AND IN SETUP :

mySerial.begin (9600);
mp3_set_serial (mySerial);

GOOD JOB TO ME :wink: