|
|
@@ -9,12 +9,10 @@
|
|
|
#define DS3231_I2C_ADDRESS 0x68
|
|
|
|
|
|
CRGB leds[NUM_LEDS];
|
|
|
-CRGB primaryColor = CRGB::White;
|
|
|
+CRGB primaryColor = CRGB::Green;
|
|
|
|
|
|
byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;
|
|
|
|
|
|
-byte count;
|
|
|
-
|
|
|
// Convert normal decimal numbers to binary coded decimal
|
|
|
byte decToBcd(byte val)
|
|
|
{
|
|
|
@@ -346,12 +344,6 @@ void setOclock(){
|
|
|
|
|
|
void setLeds(){
|
|
|
clearAllLeds();
|
|
|
- /*
|
|
|
- leds[count] = CRGB::White;
|
|
|
- count++;
|
|
|
- if(count == NUM_LEDS)
|
|
|
- count = 0;
|
|
|
- */
|
|
|
|
|
|
//byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;
|
|
|
setIt();
|
|
|
@@ -359,7 +351,6 @@ void setLeds(){
|
|
|
setMinutes();
|
|
|
setHours();
|
|
|
setOclock();
|
|
|
-
|
|
|
}
|
|
|
|
|
|
void setup()
|