Skip to content

Commit

Permalink
Removed RTC library from example code
Browse files Browse the repository at this point in the history
  • Loading branch information
Seon Rozenblum committed Apr 25, 2018
1 parent 410488d commit 3028c47
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions examples/Neo7Segment_Demo/Neo7Segment_Demo.ino
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
#include "RTClib.h"
#include <Neo7Segment.h>

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

// Initialise the RTC library for use in showing the time
RTC_Millis rtc;

int loopIndex = 0;
byte rainbowIndex = 0;
unsigned long nextRainbow = 0;
Expand All @@ -23,9 +19,6 @@ void setup()

// Set the initial display feature to show as 0
displayFeature = 0;

// Pull the current date & time from the IDE
rtc.begin(DateTime(F(__DATE__), F(__TIME__)));
}

void loop()
Expand Down Expand Up @@ -149,7 +142,7 @@ void loop()


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

Expand Down

0 comments on commit 3028c47

Please sign in to comment.