Added sleep mode for VS1053, HTTP server, tar upload, JSON status, RFID card removal debouncing, ...

This commit is contained in:
2019-08-12 20:15:00 +02:00
parent cd4251df86
commit 651a4e8510
8 changed files with 286 additions and 13 deletions

View File

@ -16,6 +16,7 @@ private:
void _check_buttons();
uint32_t _get_rfid_card_uid();
uint32_t _last_rfid_card_uid = 0;
uint8_t _no_rfid_card_count = 0;
Player* _player;
unsigned long _last_rfid_scan_at = 0;
String _serial_buffer = String();
@ -26,5 +27,6 @@ private:
bool _check_button(uint8_t btn);
public:
Controller(Player* p, MCP* m);
String rfid_uid() { return String(_last_rfid_card_uid, HEX); }
void loop();
};