Skip to content

Commit

Permalink
Merge pull request OpenEPaperLink#144 from gil04/main
Browse files Browse the repository at this point in the history
Added yellow color for OpenEPaperLink Firmware 2.6
  • Loading branch information
jonasniesner authored May 30, 2024
2 parents d599e1e + 9a2d88a commit 0a9fbe0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/open_epaper_link/imagegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
white = (255, 255, 255,255)
black = (0, 0, 0,255)
red = (255, 0, 0,255)
yellow = (255, 255, 0,255)
queue = []
notsetup = True;
running = False;
Expand Down Expand Up @@ -98,6 +99,8 @@ def getIndexColor(color):
return black
elif color_str == "red" or color_str == "r":
return red
elif color_str == "yellow" or color_str == "y":
return yellow
else:
return white
# should_show_element
Expand Down

0 comments on commit 0a9fbe0

Please sign in to comment.