-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from arduino-libraries/marqdevx/edgeControl-fix
- Loading branch information
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
examples/Edge Control Getting Started/EdgeControl/EdgeControl.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|