Skip to content

Commit 3028c47

Browse files
Removed RTC library from example code
1 parent 410488d commit 3028c47

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

examples/Neo7Segment_Demo/Neo7Segment_Demo.ino

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
#include "RTClib.h"
21
#include <Neo7Segment.h>
32

43
// Initalise the display with 5 Neo7Segment boards connected to GPIO 4
54
Neo7Segment disp( 5, 4 );
65

7-
// Initialise the RTC library for use in showing the time
8-
RTC_Millis rtc;
9-
106
int loopIndex = 0;
117
byte rainbowIndex = 0;
128
unsigned long nextRainbow = 0;
@@ -23,9 +19,6 @@ void setup()
2319

2420
// Set the initial display feature to show as 0
2521
displayFeature = 0;
26-
27-
// Pull the current date & time from the IDE
28-
rtc.begin(DateTime(F(__DATE__), F(__TIME__)));
2922
}
3023

3124
void loop()
@@ -149,7 +142,7 @@ void loop()
149142

150143

151144
case 9:
152-
disp.DisplayTime(rtc.now().hour(), rtc.now().minute(), rtc.now().second(), disp.Color(255, 200, 0), disp.Color(0, 0, 255) );
145+
disp.DisplayTime( 22, 16, (nextRainbow % 60), disp.Color(255, 200, 0), disp.Color(0, 0, 255) );
153146
nextRainbow = millis() + 500;
154147
break;
155148

0 commit comments

Comments
 (0)