I have separate codes.
1) for displaying data on 16*2 LCD which is shifting at 0.5 seconds
2) another code for playing songs on DFplayer (2 minutes song whic plays when I press a button)
I want to play the song and the text on the LCD to be shifting at the same time.
How do I do that. bec the code waits till the song is being played by the dfplayer.
you have not included the overall code structure.
One reason can be that the DFplayer code may contain a wait like routine which returns only after player started.
thanks a lot for the help. I found out that dfplayer works on serial port so one just have to give commands to play an audio and then the main code runs as usual. I need to write the logic to see if the song has finished playing before playing another.