Просмотр исходного кода

change color to green, remove count byte

Abhinav Sinha 2 лет назад
Родитель
Сommit
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
 #define DS3231_I2C_ADDRESS 0x68
 
 
 CRGB leds[NUM_LEDS];
 CRGB leds[NUM_LEDS];
-CRGB primaryColor = CRGB::White;
+CRGB primaryColor = CRGB::Green;
 
 
 byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;
 byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;
 
 
-byte count;
-
 // Convert normal decimal numbers to binary coded decimal
 // Convert normal decimal numbers to binary coded decimal
 byte decToBcd(byte val)
 byte decToBcd(byte val)
 {
 {
@@ -346,12 +344,6 @@ void setOclock(){
 
 
 void setLeds(){
 void setLeds(){
   clearAllLeds();
   clearAllLeds();
-  /*
-  leds[count] = CRGB::White;
-  count++;
-  if(count == NUM_LEDS)
-    count = 0;
-  */
 
 
   //byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;
   //byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;
   setIt();
   setIt();
@@ -359,7 +351,6 @@ void setLeds(){
   setMinutes();
   setMinutes();
   setHours();
   setHours();
   setOclock();
   setOclock();
-  
 }
 }
 
 
 void setup()
 void setup()