Skip to content

Commit bb7bb51

Browse files
committed
Edited News examples.
1 parent 00a9265 commit bb7bb51

File tree

478 files changed

+70717
-154685
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

478 files changed

+70717
-154685
lines changed

examples/Inkplate10/Projects/Daily_Weather_Station_Example/Daily_Weather_Station_Example.ino

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ char lat[] = "45.5510548";
3535
char lon[] = "18.695463";
3636

3737
// Change to your wifi ssid and password
38-
char ssid[] = "";
39-
char pass[] = "";
38+
char ssid[] = "Besest";
39+
char pass[] = "12345678";
4040

4141
// Uncomment this for MPH and Fahrenheit output, also uncomment it in the begining of Network.cpp
4242
// #define AMERICAN
4343

4444
// Change to your api key, if you don't have one, head over to:
4545
// https://openweathermap.org/guide , register and copy the key provided
46-
char apiKey[] = "";
46+
char apiKey[] = "bf11bcaae795116ccc21beec25850aa0";
4747

4848
//----------------------------------
4949

@@ -56,6 +56,7 @@ char apiKey[] = "";
5656
// Including fonts used
5757
#include "Fonts/Inter16pt7b.h"
5858
#include "Fonts/Inter20pt7b.h"
59+
#include "Fonts/Inter36pt7b.h"
5960
#include "Fonts/Inter48pt7b.h"
6061

6162
// Including icons generated by the py file
@@ -80,8 +81,8 @@ const uint8_t *logos[18] = {
8081
};
8182

8283
const uint8_t *s_logos[18] = {
83-
icon_s_01d, icon_s_02d, icon_s_03d, icon_s_04d, icon_s_09d, icon_s_10d, icon_s_11d, icon_s_13d, icon_s_50d,
84-
icon_s_01n, icon_s_02n, icon_s_03n, icon_s_04n, icon_s_09n, icon_s_10n, icon_s_11n, icon_s_13n, icon_s_50n,
84+
icon_S_01d, icon_S_02d, icon_S_03d, icon_S_04d, icon_S_09d, icon_S_10d, icon_S_11d, icon_S_13d, icon_S_50d,
85+
icon_S_01n, icon_S_02n, icon_S_03n, icon_S_04n, icon_S_09n, icon_S_10n, icon_S_11n, icon_S_13n, icon_S_50n,
8586
};
8687

8788
// Variables for storing temperature
@@ -196,9 +197,9 @@ void drawWeather()
196197

197198
// Draw weather state
198199
display.setTextColor(BLACK, WHITE);
199-
display.setFont(&Inter16pt7b);
200+
display.setFont(&Inter20pt7b);
200201
display.setTextSize(1);
201-
display.setCursor(40, 270);
202+
display.setCursor(80, 288);
202203
display.println(currentWeather);
203204
}
204205

@@ -281,31 +282,31 @@ void drawTemps()
281282
{
282283
// If found draw specified icon
283284
if (strcmp(abbr1, abbrs[i]) == 0)
284-
display.drawBitmap(1 * rectSpacing + 0 * rectWidth + textMargin, 450 + textMargin + 150, s_logos[i], 48, 48,
285+
display.drawBitmap(1 * rectSpacing + 0 * rectWidth + textMargin, 450 + textMargin + 150, s_logos[i], 100, 100,
285286
WHITE, BLACK);
286287
}
287288

288289
for (int i = 0; i < 18; ++i)
289290
{
290291
// If found draw specified icon
291292
if (strcmp(abbr2, abbrs[i]) == 0)
292-
display.drawBitmap(2 * rectSpacing + 1 * rectWidth + textMargin, 450 + textMargin + 150, s_logos[i], 48, 48,
293+
display.drawBitmap(2 * rectSpacing + 1 * rectWidth + textMargin, 450 + textMargin + 150, s_logos[i], 100, 100,
293294
WHITE, BLACK);
294295
}
295296

296297
for (int i = 0; i < 18; ++i)
297298
{
298299
// If found draw specified icon
299300
if (strcmp(abbr3, abbrs[i]) == 0)
300-
display.drawBitmap(3 * rectSpacing + 2 * rectWidth + textMargin, 450 + textMargin + 150, s_logos[i], 48, 48,
301+
display.drawBitmap(3 * rectSpacing + 2 * rectWidth + textMargin, 450 + textMargin + 150, s_logos[i], 100, 100,
301302
WHITE, BLACK);
302303
}
303304

304305
for (int i = 0; i < 18; ++i)
305306
{
306307
// If found draw specified icon
307308
if (strcmp(abbr4, abbrs[i]) == 0)
308-
display.drawBitmap(4 * rectSpacing + 3 * rectWidth + textMargin, 450 + textMargin + 150, s_logos[i], 48, 48,
309+
display.drawBitmap(4 * rectSpacing + 3 * rectWidth + textMargin, 450 + textMargin + 150, s_logos[i], 100, 100,
309310
WHITE, BLACK);
310311
}
311312
}
Lines changed: 102 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,102 @@
1-
const uint8_t icon_s_01d[] PROGMEM = {0x0,0x0,0x0,0x0,0x0,0x0,
2-
0x0,0x0,0x0,0x0,0x0,0x0,
3-
0x0,0x0,0x0,0x0,0x0,0x0,
4-
0x0,0x0,0x0,0x0,0x0,0x0,
5-
0x0,0x0,0x0,0x0,0x0,0x0,
6-
0x0,0x0,0x0,0x0,0x0,0x0,
7-
0x0,0x0,0x0,0x0,0x0,0x0,
8-
0x0,0x0,0x0,0x0,0x0,0x0,
9-
0x0,0x0,0x1,0xc0,0x0,0x0,
10-
0x0,0x0,0x1,0xc0,0x0,0x0,
11-
0x0,0x0,0x1,0xc0,0x0,0x0,
12-
0x0,0x1c,0x1,0xc0,0x38,0x0,
13-
0x0,0x1e,0x1,0xc0,0x78,0x0,
14-
0x0,0x1f,0x1,0xc0,0xf8,0x0,
15-
0x0,0xf,0x80,0x1,0xf0,0x0,
16-
0x0,0x7,0x80,0x1,0xe0,0x0,
17-
0x0,0x3,0x83,0xc1,0xc0,0x0,
18-
0x0,0x0,0xf,0xf0,0x0,0x0,
19-
0x0,0x0,0x3f,0xfc,0x0,0x0,
20-
0x0,0x0,0x3c,0x3c,0x0,0x0,
21-
0x0,0x0,0x78,0x1e,0x0,0x0,
22-
0x0,0x0,0x70,0xe,0x0,0x0,
23-
0x0,0xfc,0xe0,0x7,0x0,0x0,
24-
0x0,0xfc,0xe0,0x7,0x3f,0x0,
25-
0x0,0xfc,0xe0,0x7,0x3f,0x0,
26-
0x0,0x0,0xe0,0x7,0x3f,0x0,
27-
0x0,0x0,0x70,0xe,0x0,0x0,
28-
0x0,0x0,0x78,0x1e,0x0,0x0,
29-
0x0,0x0,0x3c,0x3c,0x0,0x0,
30-
0x0,0x0,0x3f,0xfc,0x0,0x0,
31-
0x0,0x0,0xf,0xf0,0x0,0x0,
32-
0x0,0x3,0x83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ff,0xff,0xff,0xe0,0x0,0x0,0x0,
48+
0x0,0x0,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xe0,0x0,0x0,0x0,
49+
0x0,0x0,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xe0,0x0,0x0,0x0,
50+
0x0,0x0,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xe0,0x0,0x0,0x0,
51+
0x0,0x0,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xe0,0x0,0x0,0x0,
52+
0x0,0x0,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xe0,0x0,0x0,0x0,
53+
0x0,0x0,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xe0,0x0,0x0,0x0,
54+
0x0,0x0,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xe0,0x0,0x0,0x0,
55+
0x0,0x0,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xe0,0x0,0x0,0x0,
56+
0x0,0x0,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xe0,0x0,0x0,0x0,
57+
0x0,0x0,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xe0,0x0,0x0,0x0,
58+
0x0,0x0,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xe0,0x0,0x0,0x0,
59+
0x0,0x0,0x0,0x1f,0xff,0xff,0xff,0xff,0xff,0xe0,0x0,0x0,0x0,
60+
0x0,0x0,0x0,0x1f,0xff,0xff,0xff,0xff,0xff,0xc0,0x0,0x0,0x0,
61+
0x0,0x0,0x0,0x1f,0xff,0xff,0xff,0xff,0xff,0xc0,0x0,0x0,0x0,
62+
0x0,0x0,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xc0,0x0,0x0,0x0,
63+
0x0,0x0,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0x80,0x0,0x0,0x0,
64+
0x0,0x0,0x0,0x7,0xff,0xff,0xff,0xff,0xff,0x0,0x0,0x0,0x0,
65+
0x0,0x0,0x0,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