Skip to content

Commit

Permalink
Merge pull request #13 from arduino-libraries/marqdevx/edgeControl-gs
Browse files Browse the repository at this point in the history
Marqdevx/edge control gs
  • Loading branch information
marqdevx authored May 27, 2021
2 parents 62264ce + 477378e commit bcb03f7
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ jobs:
sketch-paths: |
- examples/Dual Core Processing/BlinkGreenLed_M4
- fqbn: arduino:mbed_edge:edge_control
sketch-paths: |
- examples/Edge Control Getting Started
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -62,6 +66,7 @@ jobs:
- source-path: ./
# Install library dependencies.
- name: ArduinoBLE
- name: Arduino_EdgeControl
sketch-paths: |
# Sketches to compile for all boards
Expand Down
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);
}

0 comments on commit bcb03f7

Please sign in to comment.