Skip to content

Commit e7befd5

Browse files
committed
fix(size): skip icons and splash screen if esp8266
1 parent 9c44317 commit e7befd5

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

src/components/display/drivers/dispDrvBase.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
*/
1515
#ifndef WS_DISP_DRV_BASE_H
1616
#define WS_DISP_DRV_BASE_H
17-
17+
#ifndef ARDUINO_ARCH_ESP8266
1818
#include "../assets/icons.h"
1919
#include "../assets/splash.h"
20+
#endif // ARDUINO_ARCH_ESP8266
2021
#include "Adafruit_ThinkInk.h"
2122
#include "Wippersnapper.h"
2223

src/components/display/drivers/dispDrvSt7789.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ class dispDrvSt7789 : public dispDrvBase {
101101
return true;
102102
}
103103

104+
#ifndef ARDUINO_ARCH_ESP8266
104105
/*!
105106
@brief Displays the splash screen on the display.
106107
*/
@@ -236,6 +237,8 @@ class dispDrvSt7789 : public dispDrvBase {
236237
}
237238
}
238239

240+
#endif // ARDUINO_ARCH_ESP8266
241+
239242
/*!
240243
@brief Writes a message to the display.
241244
@param message

src/components/display/drivers/dispDrvThinkInkGrayscale4Eaamfgn.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ class drvDispThinkInkGrayscale4Eaamfgn : public dispDrvBase {
8787
return true;
8888
}
8989

90+
#ifndef ARDUINO_ARCH_ESP8266
9091
/*!
9192
@brief Displays a splash screen
9293
*/
@@ -210,6 +211,9 @@ class drvDispThinkInkGrayscale4Eaamfgn : public dispDrvBase {
210211
_display->display();
211212
}
212213

214+
#endif // ARDUINO_ARCH_ESP8266
215+
216+
213217
/*!
214218
@brief Writes a message to the display.
215219
@param message

src/components/display/drivers/dispDrvThinkInkGrayscale4T5.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ class dispDrvThinkInkGrayscale4T5 : public dispDrvBase {
8181
return true;
8282
}
8383

84+
#ifndef ARDUINO_ARCH_ESP8266
8485
/*!
8586
@brief Draws a status bar at the top of the display.
8687
@param io_username
@@ -193,7 +194,7 @@ class dispDrvThinkInkGrayscale4T5 : public dispDrvBase {
193194

194195
_display->display();
195196
}
196-
197+
#endif // ARDUINO_ARCH_ESP8266
197198
/*!
198199
@brief Writes a message to the display.
199200
@param message

0 commit comments

Comments
 (0)