diff --git a/examples/Edge Control Getting Started/EdgeControl/EdgeControl.ino b/examples/Edge Control Getting Started/EdgeControl/EdgeControl.ino new file mode 100644 index 0000000..19caaf5 --- /dev/null +++ b/examples/Edge Control Getting Started/EdgeControl/EdgeControl.ino @@ -0,0 +1,30 @@ +#include + +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); +} \ No newline at end of file diff --git a/library.properties b/library.properties index ba5613d..9741b06 100644 --- a/library.properties +++ b/library.properties @@ -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 sentence=This library contains the complete Arduino sketches from the Pro Tutorials.