changes used library for dfplayer

This commit is contained in:
Marcel 2024-05-27 11:17:53 +02:00
parent 43d31651cd
commit 6997f3c98f
5 changed files with 24 additions and 86 deletions

View file

@ -1,15 +1,16 @@
#pragma once
#include <DFRobotDFPlayerMini.h>
#include <DFPlayerMini_Fast.h>
#include "station.h"
class Context {
public:
Context(Station* stations, int stationCount, unsigned long delta, DFRobotDFPlayerMini* dfPlayer);
Context(Station* stations, int stationCount, unsigned long delta, DFPlayerMini_Fast* dfPlayer);
Station* stations;
int stationCount;
unsigned long delta;
DFRobotDFPlayerMini* dfPlayer;
DFPlayerMini_Fast* dfPlayer;
int getStationIndex(const Station* station) const;
bool isPlaying() const;
};