瀏覽代碼

change color to green, remove count byte

Abhinav Sinha 2 年之前
父節點
當前提交
fa1e2e689f
共有 1 個文件被更改,包括 1 次插入10 次删除
  1. 1 10
      src/word-clock.cpp

+ 1 - 10
src/word-clock.cpp

@@ -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()