Skip to content

Commit d345ccb

Browse files
committed
Changed variable type from uint8_t to byte
1 parent d67cdb1 commit d345ccb

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

examples/SimpleRTC/SimpleRTC.ino

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
RTCZero rtc;
2121

2222
/* Change these values to set the current initial time */
23-
const uint8_t seconds = 0;
24-
const uint8_t minutes = 0;
25-
const uint8_t hours = 16;
23+
const byte seconds = 0;
24+
const byte minutes = 0;
25+
const byte hours = 16;
2626

2727
/* Change these values to set the current initial date */
28-
const uint8_t day = 15;
29-
const uint8_t month = 6;
30-
const uint8_t year = 15;
28+
const byte day = 15;
29+
const byte month = 6;
30+
const byte year = 15;
3131

3232
void setup()
3333
{

examples/SimpleRTCAlarm/SimpleRTCAlarm.ino

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
RTCZero rtc;
2121

2222
/* Change these values to set the current initial time */
23-
const uint8_t seconds = 0;
24-
const uint8_t minutes = 0;
25-
const uint8_t hours = 16;
23+
const byte seconds = 0;
24+
const byte minutes = 0;
25+
const byte hours = 16;
2626

2727
/* Change these values to set the current initial date */
28-
const uint8_t day = 25;
29-
const uint8_t month = 9;
30-
const uint8_t year = 15;
28+
const byte day = 25;
29+
const byte month = 9;
30+
const byte year = 15;
3131

3232
void setup()
3333
{

examples/SleepRTCAlarm/SleepRTCAlarm.ino

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
RTCZero rtc;
1818

1919
/* Change these values to set the current initial time */
20-
const uint8_t seconds = 0;
21-
const uint8_t minutes = 00;
22-
const uint8_t hours = 17;
20+
const byte seconds = 0;
21+
const byte minutes = 00;
22+
const byte hours = 17;
2323

2424
/* Change these values to set the current initial date */
25-
const uint8_t day = 17;
26-
const uint8_t month = 11;
27-
const uint8_t year = 15;
25+
const byte day = 17;
26+
const byte month = 11;
27+
const byte year = 15;
2828

2929
void setup()
3030
{

0 commit comments

Comments
 (0)