We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7951154 commit e162341Copy full SHA for e162341
examples/Edge Control Getting Started/Edge Control Getting Started.ino
@@ -0,0 +1,30 @@
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
+ // Initalise 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
30
0 commit comments