Skip to content

Commit 15cab54

Browse files
committed
Update examples
1 parent 4885817 commit 15cab54

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

examples/Basic/BatterySolarStatus/BatterySolarStatus.ino

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ void setup()
2020

2121
Wire.begin();
2222
delay(500);
23+
2324
Serial.print("I/O Expander initializazion ");
24-
if (!Expander.begin()) {
25+
while (!Expander.begin()) {
2526
Serial.println("failed.");
2627
Serial.println("Please, be sure to enable gated 3V3 and 5V power rails");
2728
Serial.println("via Power.on(PWR_3V3) and Power.on(PWR_VBAT).");
29+
delay(500);
2830
}
2931
Serial.println("succeeded.");
3032

@@ -51,4 +53,4 @@ void loop()
5153

5254
printNow = millis() + printInterval;
5355
}
54-
}
56+
}

examples/Basic/LCD/LCD.ino

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ byte frownie[8] = {
4545

4646
void setup()
4747
{
48+
EdgeControl.begin();
49+
4850
Serial.begin(9600);
4951

5052
auto startNow = millis() + 2500;
@@ -58,7 +60,16 @@ void setup()
5860
Power.on(PWR_VBAT);
5961

6062
Wire.begin();
61-
Expander.begin();
63+
64+
delay(500);
65+
66+
Serial.print("IO Expander initializazion ");
67+
if (!Expander.begin()) {
68+
Serial.println("failed.");
69+
Serial.println("Please, be sure to enable gated 3V3 and 5V power rails");
70+
Serial.println("via Power.on(PWR_3V3) and Power.on(PWR_VBAT).");
71+
}
72+
Serial.println("succeeded.");
6273

6374
// set up the LCD's number of columns and rows:
6475
LCD.begin(16, 2);
@@ -69,7 +80,7 @@ void setup()
6980

7081
// Print a message to the LCD.
7182
LCD.home(); // go home
72-
LCD.print("Hi, Outdoor!");
83+
LCD.print("Edge Control");
7384
LCD.setCursor(15, 0);
7485
LCD.print(char(1));
7586
}

0 commit comments

Comments
 (0)