Skip to content

Commit 2fcf849

Browse files
committed
fix initialization problems in examples
1 parent 25570cd commit 2fcf849

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

libraries/EEPROM/examples/Example1_PutGet/Example1_PutGet.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
void setup() {
1414
SERIAL.begin(115200);
1515
SERIAL.println("EEPROM Example1_PutGet");
16+
EEPROM.init();
1617

1718
// use EEPROM.get(int index, T type) to retrieve
1819
// an arbitrary type from flash memory

libraries/WDT/examples/Example1_WDT_Basic/Example1_WDT_Basic.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ void setup() {
3333
Serial.begin(115200);
3434

3535
Serial.println("Artemis Watchdog Timer Example");
36+
37+
pinMode(LED_BUILTIN, OUTPUT);
3638

3739
// Start the watchdog
3840
wdt.start();

libraries/WDT/examples/Example2_WDT_Config/Example2_WDT_Config.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ void setup()
4343

4444
Serial.println("Artemis Watchdog Timer Example");
4545

46+
pinMode(LED_BUILTIN, OUTPUT);
4647
// Configure the watchdog
4748
/*
4849
Available watchdog timer clock dividers.

0 commit comments

Comments
 (0)