Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/helpers/ui/ST7735Display.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
#include "TFT_eSPI.h"
#include <helpers/RefCountedDigitalPin.h>

#if defined(ESP32) && defined(FS_NO_GLOBALS)
// TFT_eSPI with SMOOTH_FONT defines FS_NO_GLOBALS before including FS.h,
// which suppresses the global aliases the rest of the codebase relies on.
#include <FS.h>
using fs::FS;
using fs::File;
using fs::SeekMode;
using fs::SeekSet;
using fs::SeekCur;
using fs::SeekEnd;
#endif

class ST7735Display : public DisplayDriver {
bool _isOn;
RefCountedDigitalPin* _peripher_power;
Expand Down