Skip to content

Commit 35c67d5

Browse files
authored
fixed edge control getting started
Merge pull request arduino-libraries#14 from arduino-libraries/marqdevx/edgeControl-fix
2 parents ff5b272 + 5150a33 commit 35c67d5

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#include <Arduino_EdgeControl.h>
2+
3+
void setup() {
4+
Serial.begin(9600);
5+
6+
// Set the timeout
7+
auto startNow = millis() + 2500;
8+
while (!Serial && millis() < startNow);
9+
Serial.println("Hello, Edge Control Sketch!");
10+
11+
// Enable power lines
12+
Power.enable3V3();
13+
Power.enable5V();
14+
15+
// Start the I2C connection
16+
Wire.begin();
17+
18+
// Initialize the expander pins
19+
Expander.begin();
20+
Expander.pinMode(EXP_LED1, OUTPUT);
21+
}
22+
23+
void loop() {
24+
// put your main code here, to run repeatedly:
25+
Serial.println("Blink");
26+
Expander.digitalWrite(EXP_LED1, LOW);
27+
delay(500);
28+
Expander.digitalWrite(EXP_LED1, HIGH);
29+
delay(500);
30+
}

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Arduino_Pro_Tutorials
2-
version=1.0.2
2+
version=1.0.3
33
author=Martino Facchin, Riccardo Ricco, Dario Pennisi, Sebastian Romero, Lenard George, Ignacio Herrera, Jose García, Pablo Marquínez
44
maintainer=Arduino <info@arduino.cc>
55
sentence=This library contains the complete Arduino sketches from the Pro Tutorials.

0 commit comments

Comments
 (0)