Skip to content

Commit 21fd27d

Browse files
committed
Cleanup
1 parent 6508082 commit 21fd27d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ Version: 1.0
1919

2020
## Dependencies
2121

22-
* [General Purpose Input/Output library for Arduino, GPIO](https://github.com/mikaelpatel/Arduino-GPIO)
23-
* [Two-Wire Interface library for Arduino, TWI](https://github.com/mikaelpatel/Arduino-TWI)
22+
* [Arduino-GPIO](https://github.com/mikaelpatel/Arduino-GPIO)
23+
* [Arduino-TWI](https://github.com/mikaelpatel/Arduino-TWI)

examples/RTC/RTC.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "RTC.h"
22

3+
// #define SET_TIME
34
// #define USE_DS1302
45
#define USE_DS1307
56

@@ -27,9 +28,11 @@ void setup()
2728
Serial.begin(57600);
2829
while (!Serial);
2930

31+
#if defined(SET_TIME)
3032
set_zone(ONE_HOUR);
3133
struct tm now(SATURDAY, 2000, JANUARY, 1, 23, 59, 30);
3234
rtc.set_time(now);
35+
#endif
3336
}
3437

3538
void loop()

0 commit comments

Comments
 (0)