Skip to content

Commit d21aae9

Browse files
committed
Remove dhrdata method
1 parent de24c13 commit d21aae9

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

examples/WeatherStationDemo/WeatherStationDemo.ino

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,16 +124,15 @@ void drawDateTime(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, in
124124
void drawCurrentWeather(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y);
125125
void drawForecast(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y);
126126
void drawForecastDetails(OLEDDisplay *display, int x, int y, int dayIndex);
127-
void drawDHTData(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y);
128127
void drawHeaderOverlay(OLEDDisplay *display, OLEDDisplayUiState* state);
129128
void setReadyForWeatherUpdate();
130129

131130

132131
// Add frames
133132
// this array keeps function pointers to all frames
134133
// frames are the single views that slide from right to left
135-
FrameCallback frames[] = { drawDateTime, drawCurrentWeather, drawForecast, drawDHTData };
136-
int numberOfFrames = 4;
134+
FrameCallback frames[] = { drawDateTime, drawCurrentWeather, drawForecast };
135+
int numberOfFrames = 3;
137136

138137
OverlayCallback overlays[] = { drawHeaderOverlay };
139138
int numberOfOverlays = 1;
@@ -310,12 +309,6 @@ void drawForecastDetails(OLEDDisplay *display, int x, int y, int dayIndex) {
310309
display->setTextAlignment(TEXT_ALIGN_LEFT);
311310
}
312311

313-
void drawDHTData(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y) {
314-
display->setTextAlignment(TEXT_ALIGN_CENTER);
315-
display->setFont(ArialMT_Plain_10);
316-
display->drawString(x + 64, y, "Sensor Data");
317-
}
318-
319312
void drawHeaderOverlay(OLEDDisplay *display, OLEDDisplayUiState* state) {
320313
now = time(nullptr);
321314
struct tm* timeInfo;

0 commit comments

Comments
 (0)