## Summary * Swap to updated SDCardManager which uses SdFat * Add exFAT support * Swap to using FsFile everywhere * Use newly exposed `SdMan` macro to get to static instance of SDCardManager * Move a bunch of FsHelpers up to SDCardManager
26 lines
741 B
C++
26 lines
741 B
C++
#pragma once
|
|
|
|
#include <HardwareSerial.h>
|
|
|
|
#include <string>
|
|
#include <utility>
|
|
|
|
class MappedInputManager;
|
|
class GfxRenderer;
|
|
|
|
class Activity {
|
|
protected:
|
|
std::string name;
|
|
GfxRenderer& renderer;
|
|
MappedInputManager& mappedInput;
|
|
|
|
public:
|
|
explicit Activity(std::string name, GfxRenderer& renderer, MappedInputManager& mappedInput)
|
|
: name(std::move(name)), renderer(renderer), mappedInput(mappedInput) {}
|
|
virtual ~Activity() = default;
|
|
virtual void onEnter() { Serial.printf("[%lu] [ACT] Entering activity: %s\n", millis(), name.c_str()); }
|
|
virtual void onExit() { Serial.printf("[%lu] [ACT] Exiting activity: %s\n", millis(), name.c_str()); }
|
|
virtual void loop() {}
|
|
virtual bool skipLoopDelay() { return false; }
|
|
};
|