Skip to content

Commit 0496c06

Browse files
committed
[Fix] Add back display icons with PROGMEM macro
1 parent 36ced04 commit 0496c06

File tree

4 files changed

+0
-18
lines changed

4 files changed

+0
-18
lines changed

src/components/display/drivers/dispDrvBase.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@
1515
#ifndef WS_DISP_DRV_BASE_H
1616
#define WS_DISP_DRV_BASE_H
1717

18-
#ifndef ARDUINO_ARCH_ESP8266
1918
#include "../assets/icons.h"
2019
#include "../assets/splash.h"
21-
#endif
2220
#include "Adafruit_ThinkInk.h"
2321
#include "Wippersnapper.h"
2422

src/components/display/drivers/dispDrvSt7789.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ class dispDrvSt7789 : public dispDrvBase {
108108
if (!_display)
109109
return;
110110

111-
#ifndef ARDUINO_ARCH_ESP8266
112111
// Display the appropriate splash screen based on resolution
113112
if (_width == 240 && _height == 240) {
114113
_display->drawBitmap(0, 0, tft_bmp_logo_240240, 240, 240, ST77XX_WHITE);
@@ -118,7 +117,6 @@ class dispDrvSt7789 : public dispDrvBase {
118117
// Unsupported resolution detected, skip splash screen
119118
return;
120119
}
121-
#endif
122120

123121
delay(500);
124122
}
@@ -145,7 +143,6 @@ class dispDrvSt7789 : public dispDrvBase {
145143
_display->setCursor(5, 6);
146144
_display->print(io_username);
147145

148-
#ifndef ARDUINO_ARCH_ESP8266
149146
// Calculate icon positions (rightmost side of status bar), center
150147
// vertically
151148
_statusbar_icons_y =
@@ -169,7 +166,6 @@ class dispDrvSt7789 : public dispDrvBase {
169166
epd_bmp_bat_full, ST7789_STATUSBAR_ICON_SZ,
170167
ST7789_STATUSBAR_ICON_SZ, ST77XX_BLACK);
171168

172-
#endif
173169
// Reset text color and size for main text area
174170
_display->setTextColor(ST77XX_WHITE);
175171
_display->setTextSize(_text_sz);
@@ -198,7 +194,6 @@ class dispDrvSt7789 : public dispDrvBase {
198194
if (!update_rssi && !update_mqtt)
199195
return;
200196

201-
#ifndef ARDUINO_ARCH_ESP8266
202197
if (update_mqtt) {
203198
// Clear and draw the new cloud icon, based on MQTT connection status
204199
_display->fillRect(_statusbar_icon_cloud_x, _statusbar_icons_y,
@@ -239,7 +234,6 @@ class dispDrvSt7789 : public dispDrvBase {
239234
ST7789_STATUSBAR_ICON_SZ, ST77XX_BLACK);
240235
_statusbar_rssi = rssi;
241236
}
242-
#endif
243237
}
244238

245239
/*!

src/components/display/drivers/dispDrvThinkInkGrayscale4Eaamfgn.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,8 @@ class drvDispThinkInkGrayscale4Eaamfgn : public dispDrvBase {
9393
virtual void showSplash() override {
9494
if (!_display)
9595
return;
96-
#ifndef ARDUINO_ARCH_ESP8266
9796
_display->drawBitmap(0, 0, epd_bitmap_ws_logo_296128, 296, 128, EPD_BLACK);
9897
_display->display();
99-
#endif
10098
}
10199

102100
/*!
@@ -123,7 +121,6 @@ class drvDispThinkInkGrayscale4Eaamfgn : public dispDrvBase {
123121
_display->setCursor(5, 6);
124122
_display->print(io_username);
125123

126-
#ifndef ARDUINO_ARCH_ESP8266
127124
// Calculate status bar icon positions and center vertically
128125
_statusbar_icons_y =
129126
STATUS_BAR_BORDER +
@@ -144,7 +141,6 @@ class drvDispThinkInkGrayscale4Eaamfgn : public dispDrvBase {
144141
_display->drawBitmap(_statusbar_icon_battery_x, _statusbar_icons_y,
145142
epd_bmp_bat_full, STATUS_BAR_ICON_SZ,
146143
STATUS_BAR_ICON_SZ, EPD_BLACK);
147-
#endif
148144
_display->display();
149145
}
150146

@@ -171,7 +167,6 @@ class drvDispThinkInkGrayscale4Eaamfgn : public dispDrvBase {
171167
if (!update_rssi && !update_mqtt)
172168
return;
173169

174-
#ifndef ARDUINO_ARCH_ESP8266
175170
if (update_mqtt) {
176171
// updating the RSSI occurs too frequently to be practical
177172
_display->fillRect(_statusbar_icon_cloud_x, _statusbar_icons_y,
@@ -210,7 +205,6 @@ class drvDispThinkInkGrayscale4Eaamfgn : public dispDrvBase {
210205
EPD_BLACK);
211206
_statusbar_rssi = rssi;
212207
}
213-
#endif
214208

215209
_display->display();
216210
}

src/components/display/drivers/dispDrvThinkInkGrayscale4T5.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ class dispDrvThinkInkGrayscale4T5 : public dispDrvBase {
105105
_display->setCursor(5, 6);
106106
_display->print(io_username);
107107

108-
#ifndef ARDUINO_ARCH_ESP8266
109108
// Calculate status bar icon positions and center vertically
110109
_statusbar_icons_y =
111110
STATUS_BAR_BORDER +
@@ -126,7 +125,6 @@ class dispDrvThinkInkGrayscale4T5 : public dispDrvBase {
126125
_display->drawBitmap(_statusbar_icon_battery_x, _statusbar_icons_y,
127126
epd_bmp_bat_full, STATUS_BAR_ICON_SZ,
128127
STATUS_BAR_ICON_SZ, EPD_BLACK);
129-
#endif
130128
_display->display();
131129
}
132130

@@ -153,7 +151,6 @@ class dispDrvThinkInkGrayscale4T5 : public dispDrvBase {
153151
if (!update_rssi && !update_mqtt)
154152
return;
155153

156-
#ifndef ARDUINO_ARCH_ESP8266
157154
if (update_mqtt) {
158155
// updating the RSSI occurs too frequently to be practical
159156
_display->fillRect(_statusbar_icon_cloud_x, _statusbar_icons_y,
@@ -192,7 +189,6 @@ class dispDrvThinkInkGrayscale4T5 : public dispDrvBase {
192189
EPD_BLACK);
193190
_statusbar_rssi = rssi;
194191
}
195-
#endif
196192
_display->display();
197193
}
198194

0 commit comments

Comments
 (0)