Browse Source

add 'a' to quarter, remove blinking 'it' comments

Abhinav Sinha 1 năm trước cách đây
mục cha
commit
3fd27bbbae
1 tập tin đã thay đổi với 9 bổ sung8 xóa
  1. 9 8
      src/word-clock.cpp

+ 9 - 8
src/word-clock.cpp

@@ -109,6 +109,7 @@ void displayTime()
     Serial.println("Saturday");
     break;
   }
+  Serial.println();
 }
 
 void clearAllLeds(){
@@ -117,10 +118,8 @@ void clearAllLeds(){
   }
 }
 void setIt(){
-  //if(second & B00000001){
-    leds[0] = primaryColor;
-    leds[1] = primaryColor;
-  //}
+  leds[0] = primaryColor;
+  leds[1] = primaryColor;
 }
 
 void setIs(){
@@ -142,6 +141,9 @@ void setTen(){
 }
 
 void setQuarter(){
+//A = led 8
+leds[8] = primaryColor;
+
 //Quarter = leds 17-23
     for(int i = 17; i < 24; i++){
       leds[i] = primaryColor;
@@ -359,17 +361,16 @@ void setup()
   Serial.begin(9600);
   FastLED.addLeds<LED_TYPE, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS);
   FastLED.setBrightness(BRIGHTNESS);
-  count = 0;
   // set the initial time here:
   // DS3231 seconds, minutes, hours, day, date, month, year
-  //setDS3231time(30,13,0,5,8,11,18);
+  // setDS3231time(30,46,0,0,28,1,24);
 }
 
 void loop()
 {
-  displayTime(); // display the real-time clock data on the Serial Monitor,
+  // displayTime(); // display the real-time clock data on the Serial Monitor,
   readDS3231time(&second, &minute, &hour, &dayOfWeek, &dayOfMonth, &month, &year);
   setLeds();
   FastLED.show();
-  delay(1000); // every second
+  delay(200);
 }