Skip to content

Commit d7b62aa

Browse files
committed
Changed example
1 parent e759cea commit d7b62aa

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

examples/SleepRTCAlarm/SleepRTCAlarm.ino

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
created by Arturo Guadalupi
1111
17 Nov 2015
1212
modified
13-
18 Feb 2016
13+
01 Mar 2016
1414
1515
NOTE:
1616
If you use this sketch with a MKR1000 you will see no output on the serial monitor.
@@ -35,7 +35,8 @@ const byte year = 15;
3535

3636
void setup()
3737
{
38-
Serial.begin(115200);
38+
pinMode(LED_BUILTIN, OUTPUT);
39+
digitalWrite(LED_BUILTIN, LOW);
3940

4041
rtc.begin();
4142

@@ -52,20 +53,10 @@ void setup()
5253

5354
void loop()
5455
{
55-
56-
Serial.println("Awake!");
57-
58-
for (int i = 0; i < 10; i++)
59-
Serial.print(i);
60-
61-
Serial.println();
62-
63-
Serial.println("Done! Goodnight!");
64-
6556
rtc.standbyMode(); // Sleep until next alarm match
6657
}
6758

6859
void alarmMatch()
6960
{
70-
61+
digitalWrite(LED_BUILTIN, HIGH);
7162
}

0 commit comments

Comments
 (0)