Skip to content

Commit 8d03d25

Browse files
committed
Cleanup whitespace, .gitignore
1 parent 5f92e98 commit 8d03d25

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ RemoteSystemsTempFiles
1111
.vscode
1212
.clang_complete
1313
.gcc-flags.json
14+
*.bin

examples/WeatherStationDemo/WeatherStationDemo.ino

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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

113113
OpenWeatherMapCurrentData currentWeather;
114114
OpenWeatherMapCurrent currentWeatherClient;
@@ -207,7 +207,6 @@ void setup() {
207207
Serial.println("");
208208

209209
updateData(&display);
210-
211210
}
212211

213212
void loop() {
@@ -229,8 +228,6 @@ void loop() {
229228
// time budget.
230229
delay(remainingTimeBudget);
231230
}
232-
233-
234231
}
235232

236233
void drawProgress(OLEDDisplay *display, int percentage, String label) {
@@ -260,8 +257,6 @@ void updateData(OLEDDisplay *display) {
260257
delay(1000);
261258
}
262259

263-
264-
265260
void 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-
301295
void 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

Comments
 (0)