mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-29 22:24:26 +00:00 
			
		
		
		
	Fix max7219digit chip_rotation: 180 (#1321)
Co-authored-by: Samuel Sieb <samuel@sieb.net>
This commit is contained in:
		
				
					committed by
					
						 Guillermo Ruffino
						Guillermo Ruffino
					
				
			
			
				
	
			
			
			
						parent
						
							a3b2d384f5
						
					
				
				
					commit
					29fc7ea154
				
			| @@ -229,7 +229,7 @@ void MAX7219Component::send64pixels(uint8_t chip, const uint8_t pixels[8]) { | ||||
|       b = pixels[col]; | ||||
|     } else if (this->orientation_ == 2) { | ||||
|       for (uint8_t i = 0; i < 8; i++) { | ||||
|         b |= ((pixels[i] >> (7 - col)) << (7 - i)); | ||||
|         b |= ((pixels[i] >> (7 - col)) & 1) << i; | ||||
|       } | ||||
|     } else { | ||||
|       b = pixels[7 - col]; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user