@@ -105,10 +105,10 @@ const String MONTH_NAMES[] = {"JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "
105105/* **************************
106106 * End Settings
107107 **************************/
108- // Initialize the oled display for address 0x3c
109- // sda-pin=14 and sdc-pin=12
110- SSD1306Wire display (I2C_DISPLAY_ADDRESS, SDA_PIN, SDC_PIN);
111- OLEDDisplayUi ui ( &display );
108+ // Initialize the oled display for address 0x3c
109+ // sda-pin=14 and sdc-pin=12
110+ SSD1306Wire display (I2C_DISPLAY_ADDRESS, SDA_PIN, SDC_PIN);
111+ OLEDDisplayUi ui ( &display );
112112
113113OpenWeatherMapCurrentData currentWeather;
114114OpenWeatherMapCurrent currentWeatherClient;
@@ -207,7 +207,6 @@ void setup() {
207207 Serial.println (" " );
208208
209209 updateData (&display);
210-
211210}
212211
213212void loop () {
@@ -229,8 +228,6 @@ void loop() {
229228 // time budget.
230229 delay (remainingTimeBudget);
231230 }
232-
233-
234231}
235232
236233void drawProgress (OLEDDisplay *display, int percentage, String label) {
@@ -260,8 +257,6 @@ void updateData(OLEDDisplay *display) {
260257 delay (1000 );
261258}
262259
263-
264-
265260void drawDateTime (OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y) {
266261 now = time (nullptr );
267262 struct tm * timeInfo;
@@ -297,7 +292,6 @@ void drawCurrentWeather(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t
297292 display->drawString (32 + x, 0 + y, currentWeather.iconMeteoCon );
298293}
299294
300-
301295void drawForecast (OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y) {
302296 drawForecastDetails (display, x, y, 0 );
303297 drawForecastDetails (display, x + 44 , y, 1 );
0 commit comments