#include "RTClib.h"
#include <FastLED.h>
#define NUM_LEDS 3 /*the number of leds that will light. If */
#define DATA_PINA 7 // Connect to the data wires on the pixel strips
CRGB leds[NUM_LEDS]; // sets number of pixels that will light on each strip.
RTC_DS1307 rtc;
void setup() {
Serial.begin(115200);
FastLED.addLeds<WS2812B, DATA_PINA, GRB>(leds, NUM_LEDS);
if (! rtc.begin()) {
Serial.println("Couldn't find RTC");
Serial.flush();
abort();
}
//rtc.adjust(DateTime(2014, 1, 21, 3, 0, 0));
}
void loop() {
DateTime now = rtc.now();
Serial.print("Current time: ");
Serial.print(now.year(), DEC);
Serial.print('/');
Serial.print(now.month(), DEC);
Serial.print('/');
Serial.print(now.day(), DEC);
Serial.print(' ');
Serial.print(now.hour(), DEC);
Serial.print(':');
Serial.print(now.minute(), DEC);
Serial.print(':');
Serial.print(now.second(), DEC);
Serial.println();
//fill_solid(leds, NUM_LEDS, CRGB::Red);
leds[0] = CRGB::Red;
leds[1] = CRGB(79, 239, 199);
leds[2] = CRGB(238, 51, 188);
FastLED.show();
delay(1000);
}