Fixed a problem for 3-Colour Displays
While improving the readability of the code some commits ago, a problem occured where 3-coloured E-Paper-Displays had problems correctly rendering the image. With this fix, it should be solved now.
This commit is contained in:
		| @@ -391,7 +391,7 @@ def main(): | |||||||
|             if display_colours is "bwr": |             if display_colours is "bwr": | ||||||
|                 buffer[np.logical_and(r > 240, g > 240)] = [255,255,255] #white |                 buffer[np.logical_and(r > 240, g > 240)] = [255,255,255] #white | ||||||
|                 buffer[np.logical_and(r > 240, g < 240)] = [255,0,0] #red |                 buffer[np.logical_and(r > 240, g < 240)] = [255,0,0] #red | ||||||
|                 buffer[np.logical_and(r != 255, r is g )] = [0,0,0] #black |                 buffer[np.logical_and(r != 255, r == g )] = [0,0,0] #black | ||||||
|  |  | ||||||
|             if display_colours is "bw": |             if display_colours is "bw": | ||||||
|                 buffer[np.logical_and(r > 240, g > 240)] = [255,255,255] #white |                 buffer[np.logical_and(r > 240, g > 240)] = [255,255,255] #white | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user