fix green pixel showing wrongly on startup
This commit is contained in:
		@@ -10,9 +10,8 @@ Clock::Clock() : strip(NUMPIXELS, D5, NEO_GRB + NEO_KHZ800), animator(), refresh
 | 
			
		||||
 | 
			
		||||
void Clock::init() {
 | 
			
		||||
  strip.begin();
 | 
			
		||||
  strip.clear();
 | 
			
		||||
  strip.show();
 | 
			
		||||
 | 
			
		||||
  // initialize clock ticker
 | 
			
		||||
  turnOn();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										12
									
								
								src/Clock.h
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								src/Clock.h
									
									
									
									
									
								
							@@ -25,8 +25,20 @@ class Clock {
 | 
			
		||||
 | 
			
		||||
 public:
 | 
			
		||||
  Clock();
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * initialize the strip and wordclock functions
 | 
			
		||||
   */
 | 
			
		||||
  void init();
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * turn of the wordclock
 | 
			
		||||
   */
 | 
			
		||||
  void turnOff();
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * turn on the wordclock
 | 
			
		||||
   */
 | 
			
		||||
  void turnOn();
 | 
			
		||||
 | 
			
		||||
  Ticker refreshTicker;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user