Good afternoon, I'm working on a project with attiny85 and the dfplayer with the DFPlayerMini_Fast library. The project is quite simple, a module that when turned on plays an audio file of about 30 seconds in a loop, until it is disconnected.
With the loop function in the void setup it works, but the problem is that sometimes the playback stops and it doesn't play again.
That is why I was thinking of adding a confirmation in the void loop that it is playing with the isPlaying function of the library, to restart the loop playback if there is a problem.
When adding this line with isPlaying in the void loop I get this error
data section exceeds available space on board
Sketch uses 4672 bytes (57%) of program storage space. Maximum is 8192 bytes.
Global variables use 516 bytes (100%) of dynamic memory, leaving -4 bytes for local variables. Maximum is 512 bytes.
Not enough memory; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing your footprint.
Error compiling for board ATtiny25/45/85 (No bootloader).
Is there something I can do? Or is this function not possible with attiny85?
thank you so much