Skip to content

Commit 2c76c89

Browse files
committed
IP6 Daily weather example fixed
1 parent 0926afb commit 2c76c89

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

examples/Inkplate6/Projects/Daily_Weather_Station_Example/Daily_Weather_Station_Example.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ char temps[4][8] = {
9797

9898
// Variables for storing hour strings
9999
uint8_t hours = 0;
100+
// Variable for counting partial refreshes
101+
long refreshes = 0;
102+
103+
// Constant to determine when to full update
104+
const int fullRefresh = 10;
100105

101106
// Variables for storing current time and weather info
102107
char currentTemp[16] = "0F";

examples/Inkplate6/Projects/Daily_Weather_Station_Example/Network.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,7 @@ bool Network::getData(char *city, char *temp1, char *temp2, char *temp3, char *t
169169
{
170170
char temp[48];
171171
strcpy(temp, doc["list"][i]["dt_txt"]);
172-
Serial.println(temp);
173172

174-
175173
if (strstr(temp, "15:00:00")) // Show time in 15:00 for every day
176174
{
177175
struct tm t;

examples/Inkplate6PLUS/Others/Inkplate_TicTacToe/Inkplate_TicTacToe.ino

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ char board[3][3] = {
4343
{'_', '_', '_'},
4444
};
4545

46-
// If your Inkplate doesn't have external (or second) MCP I/O expander, you should uncomment next line,
47-
// otherwise your code could hang out when you send code to your Inkplate.
48-
// You can easily check if your Inkplate has second MCP by turning it over and
49-
// if there is missing chip near place where "MCP23017-2" is written, but if there is
50-
// chip soldered, you don't have to uncomment line and use external MCP I/O expander
51-
5246
void setup()
5347
{
5448
Serial.begin(115200);

examples/Inkplate6PLUS/Projects/Calculator/Calculator.ino

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ char op = ' ';
1616
double result = 0;
1717
int rightNumPos = 0;
1818

19-
// If your Inkplate doesn't have external (or second) MCP I/O expander, you should uncomment next line,
20-
// otherwise your code could hang out when you send code to your Inkplate.
21-
// You can easily check if your Inkplate has second MCP by turning it over and
22-
// if there is missing chip near place where "MCP23017-2" is written, but if there is
23-
// chip soldered, you don't have to uncomment line and use external MCP I/O expander
24-
2519
void setup()
2620
{
2721
Serial.begin(115200);

0 commit comments

Comments
 (0)