File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff 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+ }
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ byte frownie[8] = {
4545
4646void 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}
You can’t perform that action at this time.
0 commit comments