Skip to content

Commit

Permalink
fixed edge control getting started
Browse files Browse the repository at this point in the history
Merge pull request #14 from arduino-libraries/marqdevx/edgeControl-fix
  • Loading branch information
marqdevx authored May 31, 2021
2 parents ff5b272 + 5150a33 commit 35c67d5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions examples/Edge Control Getting Started/EdgeControl/EdgeControl.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#include <Arduino_EdgeControl.h>

void setup() {
Serial.begin(9600);

// Set the timeout
auto startNow = millis() + 2500;
while (!Serial && millis() < startNow);
Serial.println("Hello, Edge Control Sketch!");

// Enable power lines
Power.enable3V3();
Power.enable5V();

// Start the I2C connection
Wire.begin();

// Initialize the expander pins
Expander.begin();
Expander.pinMode(EXP_LED1, OUTPUT);
}

void loop() {
// put your main code here, to run repeatedly:
Serial.println("Blink");
Expander.digitalWrite(EXP_LED1, LOW);
delay(500);
Expander.digitalWrite(EXP_LED1, HIGH);
delay(500);
}
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Arduino_Pro_Tutorials
version=1.0.2
version=1.0.3
author=Martino Facchin, Riccardo Ricco, Dario Pennisi, Sebastian Romero, Lenard George, Ignacio Herrera, Jose García, Pablo Marquínez
maintainer=Arduino <[email protected]>
sentence=This library contains the complete Arduino sketches from the Pro Tutorials.
Expand Down

0 comments on commit 35c67d5

Please sign in to comment.