esmp3/include/controller.h

20 lines
320 B
C++

#pragma once
#include <Arduino.h>
#include "config.h"
#include "player.h"
#include <MFRC522.h>
class Controller {
private:
MFRC522* _rfid;
bool _rfid_enabled = true;
void _check_rfid();
void _check_serial();
Player* _player;
unsigned long _last_rfid_scan_at = 0;
public:
Controller(Player* p);
void loop();
};