Skip to content

Commit 92856f6

Browse files
pennamgiulcioffi
authored andcommitted
confirmSketch.ino update:
Fix Sketch header Use 100ms blink time Fix typo in comments
1 parent 42c5bf8 commit 92856f6

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed
Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
/*
2-
Blink
3-
Turns an LED on for one second, then off for one second, repeatedly.
4-
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
5-
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
6-
the correct LED pin independent of which board is used.
7-
If you want to know what pin the on-board LED is connected to on your Arduino
8-
model, check the Technical Specs of your board at:
9-
https://www.arduino.cc/en/Main/Products
10-
modified 8 May 2014
11-
by Scott Fitzgerald
12-
modified 2 Sep 2016
13-
by Arturo Guadalupi
14-
modified 8 Sep 2016
15-
by Colby Newman
2+
This example shows how to confirm an update Sketch after a swap
3+
using MCUboot library.
4+
5+
Circuit:
6+
- Arduino Portenta H7 board
7+
168
This example code is in the public domain.
17-
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink
189
*/
1910

2011
#include <MCUboot.h>
@@ -23,14 +14,14 @@
2314
void setup() {
2415
// initialize digital pin LED_BUILTIN as an output.
2516
pinMode(LED_BUILTIN, OUTPUT);
26-
// set confirmed flag to avoid MCUBoot reverts to previous application at next reset
17+
// set confirmed flag to avoid MCUboot reverts to previous application at next reset
2718
MCUboot::confirmSketch();
2819
}
2920

3021
// the loop function runs over and over again forever
3122
void loop() {
3223
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
33-
delay(1000); // wait for a second
24+
delay(100); // wait 100ms
3425
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
35-
delay(1000); // wait for a second
26+
delay(100); // wait 100ms
3627
}

0 commit comments

Comments
 (0)