changes used library for dfplayer
This commit is contained in:
parent
43d31651cd
commit
6997f3c98f
5 changed files with 24 additions and 86 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue