Skip to content

Commit 5498060

Browse files
committed
2 parents 265a327 + 55f916e commit 5498060

File tree

4 files changed

+41
-6
lines changed

4 files changed

+41
-6
lines changed

.github/workflows/compile-examples.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- fqbn: arduino:mbed_portenta:envie_m7
3939
sketch-paths: |
4040
- examples/BLE Connectivity on Portenta H7/PortentaBLE
41-
- examples/Creating a Flash-Optimised Key-Value Store/FlashKeyValueStore
41+
- examples/Creating a Flash-Optimised Key-Value Store/FlashKeyValue
4242
- examples/Dual Core Processing/BlinkRedLed
4343
- examples/Dual Core Processing/BlinkRedLed_M7
4444
- examples/Portenta H7 as a USB Host/LEDKeyboardController
@@ -48,6 +48,10 @@ jobs:
4848
sketch-paths: |
4949
- examples/Dual Core Processing/BlinkGreenLed_M4
5050
51+
- fqbn: arduino:mbed_edge:edge_control
52+
sketch-paths: |
53+
- examples/Edge Control Getting Started
54+
5155
steps:
5256
- name: Checkout
5357
uses: actions/checkout@v2
@@ -62,6 +66,7 @@ jobs:
6266
- source-path: ./
6367
# Install library dependencies.
6468
- name: ArduinoBLE
69+
- name: Arduino_EdgeControl
6570
6671
sketch-paths: |
6772
# Sketches to compile for all boards

examples/Creating a Flash-Optimised Key-Value Store/FlashKeyValue/FlashKeyValue.ino

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ void setup()
3535

3636
// Initialize the flash IAP block device and print the memory layout
3737
blockDevice.init();
38-
Serial.printf("FlashIAP block device size: %llu\r\n", blockDevice.size());
39-
Serial.printf("FlashIAP block device read size: %llu\r\n", blockDevice.get_read_size());
40-
Serial.printf("FlashIAP block device program size: %llu\r\n", blockDevice.get_program_size());
41-
Serial.printf("FlashIAP block device erase size: %llu\r\n", blockDevice.get_erase_size());
38+
Serial.println("FlashIAP block device size: " + blockDevice.size());
39+
Serial.println("FlashIAP block device read size: " + blockDevice.get_read_size());
40+
Serial.println("FlashIAP block device program size: " + blockDevice.get_program_size());
41+
Serial.println("FlashIAP block device erase size: " + blockDevice.get_erase_size());
4242
// Deinitialize the device
4343
blockDevice.deinit();
4444

Original file line numberDiff line numberDiff line change
@@ -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+
// 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+
}

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Arduino_Pro_Tutorials
2-
version=1.0.0
2+
version=1.0.3
33
author=Martino Facchin, Riccardo Ricco, Dario Pennisi, Sebastian Romero, Lenard George, Ignacio Herrera, Jose García, Pablo Marquínez
44
maintainer=Arduino <info@arduino.cc>
55
sentence=This library contains the complete Arduino sketches from the Pro Tutorials.

0 commit comments

Comments
 (0)