From 0400d29b10c8d12676adf95646c6852ee0836ef1 Mon Sep 17 00:00:00 2001 From: Max G Date: Mon, 4 Mar 2019 22:17:31 +0100 Subject: [PATCH] Fine tuned color identification --- Calendar/Epd7in5bAdapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Calendar/Epd7in5bAdapter.py b/Calendar/Epd7in5bAdapter.py index b73f8fe..4b88a5f 100644 --- a/Calendar/Epd7in5bAdapter.py +++ b/Calendar/Epd7in5bAdapter.py @@ -65,7 +65,7 @@ class Epd7in5bAdapter (EpdAdapter): def __get_color__ (self, pixel): color_percent = self.__get_color_percentage__(pixel) brightness = self.__brightness__(pixel) - if brightness > 220 or (brightness > 150 and color_percent[0] > 35): + if brightness > 235 or (brightness > 150 and color_percent[0] > 35): return 'white' elif color_percent[0] > 50: return 'red'