Refactor display driver inclusion for Heltec T114 to support configurations without a display

This commit is contained in:
João Brázio
2025-09-04 13:25:10 +01:00
parent f9079985b6
commit d8f80f259a
3 changed files with 127 additions and 11 deletions

View File

@@ -8,9 +8,14 @@
#include <helpers/AutoDiscoverRTCClock.h>
#include <helpers/SensorManager.h>
#include <helpers/sensors/LocationProvider.h>
#ifdef DISPLAY_CLASS
#include <helpers/ui/ST7789Display.h>
#include <helpers/ui/MomentaryButton.h>
#include <helpers/ui/MomentaryButton.h>
#ifdef HELTEC_T114_WITH_DISPLAY
#include <helpers/ui/ST7789Display.h>
#else
#include "NullDisplayDriver.h"
#endif
#endif
class T114SensorManager : public SensorManager {