mirror of
				https://github.com/pimoroni/st7735-python.git
				synced 2025-01-05 22:40:25 +03:00 
			
		
		
		
	Making Stickler happy
This commit is contained in:
		| @@ -119,9 +119,9 @@ def image_to_data(image): | |||||||
|         pb = image |         pb = image | ||||||
|  |  | ||||||
|     # Mask and shift the 888 RGB into 565 RGB |     # Mask and shift the 888 RGB into 565 RGB | ||||||
|     red   = (pb[..., [0]] & 0xF8) << 8 |     red = (pb[..., [0]] & 0xF8) << 8 | ||||||
|     green = (pb[..., [1]] & 0xFC) << 3 |     green = (pb[..., [1]] & 0xFC) << 3 | ||||||
|     blue  = (pb[..., [2]] & 0xF8) >> 3 |     blue = (pb[..., [2]] & 0xF8) >> 3 | ||||||
|  |  | ||||||
|     # Stick 'em together |     # Stick 'em together | ||||||
|     result = red | green | blue |     result = red | green | blue | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sebastián Santisi
					Sebastián Santisi