Skip to content

Commit 6e7ae7b

Browse files
committed
Small corrections for IP7
1 parent 3365d16 commit 6e7ae7b

File tree

5 files changed

+20
-30
lines changed

5 files changed

+20
-30
lines changed

examples/Inkplate6COLOR/Projects/Inkplate6COLOR_Crypto_Currency_Tracker/Inkplate6COLOR_Crypto_Currency_Tracker.ino

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -91,18 +91,7 @@ char maximum[16];
9191

9292
// All months in a year, for finding current date
9393
char months[][12] = {
94-
"Jan",
95-
"Feb",
96-
"Mar",
97-
"Apr",
98-
"May",
99-
"Jun",
100-
"Jul",
101-
"Aug",
102-
"Sep",
103-
"Oct",
104-
"Nov",
105-
"Dec",
94+
"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
10695
};
10796

10897
// Out UI elements data
@@ -155,8 +144,7 @@ void loop()
155144

156145
// Go to sleep before checking again
157146
esp_sleep_enable_timer_wakeup(1000L * DELAY_MS);
158-
159-
147+
160148

161149
// Start deep sleep (this function does not return). Program stops here.
162150
esp_deep_sleep_start();

examples/Inkplate7/Diagnostics/Inkplate7_Burn_In_Clean/Inkplate7_Burn_In_Clean.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Inkplate7_Burn_In_Clean example for Soldered Inkplate 7
3-
For this example you will need only USB cable and Inkplate 4.
3+
For this example you will need only USB cable and Inkplate 7.
44
Select "Soldered Inkplate7" from Tools -> Board menu.
55
Don't have "Soldered Inkplate7" option? Follow our tutorial and add it:
66
https://soldered.com/learn/add-inkplate-6-board-definition-to-arduino-ide/

examples/Inkplate7/Diagnostics/Inkplate7_Factory_Programming/test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
const char sdCardTestStringLength = 100;
44
const char *testString = {"This is some test string..."};
55

6-
const char *WSSID = {"Soldered"};
7-
const char *WPASS = {"dasduino"};
6+
const char *WSSID = {"Soldered-testingPurposes"};
7+
const char *WPASS = {"Testing443"};
88

99
// Change this to your used slave device
1010
const uint8_t easyCDeviceAddress = 0x30;

examples/Inkplate7/Projects/Inkplate7_Daily_Weather_Station/Inkplate7_Daily_Weather_Station.ino

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,6 @@ void setup()
144144
// Activate wakeup timer
145145
esp_sleep_enable_timer_wakeup(1000L * DELAY_MS);
146146

147-
148-
149147
// Start deep sleep (this function does not return). Program stops here.
150148
esp_deep_sleep_start();
151149
}
@@ -229,13 +227,13 @@ void drawTemps()
229227
if (i == 0)
230228
{
231229
display.setCursor((i + 1) * rectSpacing + i * rectWidth + textMargin + 25,
232-
yRectangleOffset + textMargin + dayOffset);
230+
yRectangleOffset + textMargin + dayOffset);
233231
display.println("Today");
234232
}
235233
else
236234
{
237235
display.setCursor((i + 1) * rectSpacing + i * rectWidth + textMargin + 35,
238-
yRectangleOffset + textMargin + dayOffset);
236+
yRectangleOffset + textMargin + dayOffset);
239237
display.println(wDays[hours + i > 6 ? hours + i - 6 : hours + i]);
240238
}
241239
}
@@ -262,32 +260,36 @@ void drawTemps()
262260
{
263261
// If found draw specified icon
264262
if (strcmp(abbr1, abbrs[i]) == 0)
265-
display.drawBitmap(1 * rectSpacing + 0 * rectWidth + textMargin + 35, yRectangleOffset + textMargin + iconOffset,
266-
s_logos[i], 48, 48, INKPLATE7_BLACK, INKPLATE7_WHITE);
263+
display.drawBitmap(1 * rectSpacing + 0 * rectWidth + textMargin + 35,
264+
yRectangleOffset + textMargin + iconOffset, s_logos[i], 48, 48, INKPLATE7_BLACK,
265+
INKPLATE7_WHITE);
267266
}
268267

269268
for (int i = 0; i < 9; ++i)
270269
{
271270
// If found draw specified icon
272271
if (strcmp(abbr2, abbrs[i]) == 0)
273-
display.drawBitmap(2 * rectSpacing + 1 * rectWidth + textMargin + 35, yRectangleOffset + textMargin + iconOffset,
274-
s_logos[i], 48, 48, INKPLATE7_BLACK, INKPLATE7_WHITE);
272+
display.drawBitmap(2 * rectSpacing + 1 * rectWidth + textMargin + 35,
273+
yRectangleOffset + textMargin + iconOffset, s_logos[i], 48, 48, INKPLATE7_BLACK,
274+
INKPLATE7_WHITE);
275275
}
276276

277277
for (int i = 0; i < 9; ++i)
278278
{
279279
// If found draw specified icon
280280
if (strcmp(abbr3, abbrs[i]) == 0)
281-
display.drawBitmap(3 * rectSpacing + 2 * rectWidth + textMargin + 35, yRectangleOffset + textMargin + iconOffset,
282-
s_logos[i], 48, 48, INKPLATE7_BLACK, INKPLATE7_WHITE);
281+
display.drawBitmap(3 * rectSpacing + 2 * rectWidth + textMargin + 35,
282+
yRectangleOffset + textMargin + iconOffset, s_logos[i], 48, 48, INKPLATE7_BLACK,
283+
INKPLATE7_WHITE);
283284
}
284285

285286
for (int i = 0; i < 9; ++i)
286287
{
287288
// If found draw specified icon
288289
if (strcmp(abbr4, abbrs[i]) == 0)
289-
display.drawBitmap(4 * rectSpacing + 3 * rectWidth + textMargin + 35, yRectangleOffset + textMargin + iconOffset,
290-
s_logos[i], 48, 48, INKPLATE7_BLACK, INKPLATE7_WHITE);
290+
display.drawBitmap(4 * rectSpacing + 3 * rectWidth + textMargin + 35,
291+
yRectangleOffset + textMargin + iconOffset, s_logos[i], 48, 48, INKPLATE7_BLACK,
292+
INKPLATE7_WHITE);
291293
}
292294
}
293295

examples/Inkplate7/Projects/Inkplate7_Google_Calendar/Inkplate7_Google_Calendar.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ void drawTime()
177177
display.setFont(&FreeSans9pt7b);
178178
display.setTextSize(1);
179179

180-
display.setCursor(500, 18);
180+
display.setCursor(473, 18);
181181

182182
// Our function to get time
183183
network.getTime(date, timeZone);

0 commit comments

Comments
 (0)