File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed
examples/Edge Control Getting Started Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 48
48
sketch-paths : |
49
49
- examples/Dual Core Processing/BlinkGreenLed_M4
50
50
51
+ - fqbn : arduino:mbed_edge:edge_control
52
+ sketch-paths : |
53
+ - examples/Edge Control Getting Started
54
+
51
55
steps :
52
56
- name : Checkout
53
57
uses : actions/checkout@v2
62
66
- source-path: ./
63
67
# Install library dependencies.
64
68
- name: ArduinoBLE
69
+ - name: Arduino_EdgeControl
65
70
66
71
sketch-paths : |
67
72
# Sketches to compile for all boards
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments