From 1a22645964b62e8131ff74624ad7cc13894aca0a Mon Sep 17 00:00:00 2001 From: Toto99303 Date: Sat, 16 Dec 2023 21:38:32 +0200 Subject: [PATCH] M5StickC support added --- src/drivers/devices/device.h | 6 ++++++ src/drivers/displays/display.cpp | 4 ++++ src/drivers/displays/displayDriver.h | 1 + 3 files changed, 11 insertions(+) diff --git a/src/drivers/devices/device.h b/src/drivers/devices/device.h index 4ad9900..5f01a81 100644 --- a/src/drivers/devices/device.h +++ b/src/drivers/devices/device.h @@ -23,6 +23,12 @@ #include "esp32CAM.h" #elif defined(M5_STAMP_S3) #include "m5StampS3.h" +#elif defined(DEVKITV1RGB) +#include "esp32DevKitRGB.h" +#elif defined(S3MINIWEMOS) +#include "esp32S3MiniWemos.h" +#elif defined(S3MINIWEACT) +#include "esp32S3MiniWeact.h" #else #error "No device defined" diff --git a/src/drivers/displays/display.cpp b/src/drivers/displays/display.cpp index 4b14e99..9061d8e 100644 --- a/src/drivers/displays/display.cpp +++ b/src/drivers/displays/display.cpp @@ -1,5 +1,9 @@ #include "display.h" +#ifdef LED_DISPLAY +DisplayDriver *currentDisplayDriver = &ledDisplayDriver; +#endif + #ifdef NO_DISPLAY DisplayDriver *currentDisplayDriver = &noDisplayDriver; #endif diff --git a/src/drivers/displays/displayDriver.h b/src/drivers/displays/displayDriver.h index 3f4ce1a..d8858ad 100644 --- a/src/drivers/displays/displayDriver.h +++ b/src/drivers/displays/displayDriver.h @@ -29,6 +29,7 @@ typedef struct extern DisplayDriver *currentDisplayDriver; extern DisplayDriver noDisplayDriver; +extern DisplayDriver ledDisplayDriver; extern DisplayDriver tDisplayDriver; extern DisplayDriver amoledDisplayDriver; extern DisplayDriver dongleDisplayDriver;