Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working/support 5 inches device #2

Merged
merged 2 commits into from
Jun 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ config:
# For 5 Inch Devices
# - 5-inchLandscape6Grid
# - 5-inchTheme2
THEME: 5-inchLandscape6Grid
THEME: 5-inchTheme2

# Hardware sensors reading
# Choose the appropriate method for reading your hardware sensors:
Expand Down
2 changes: 1 addition & 1 deletion library/lcd/lcd_comm_rev_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def Hello(self):
if response == SubRevision.FIVEINCH.value:
self.sub_revision = SubRevision.FIVEINCH
else:
logger.warning("Display returned unknown sub-revision on Hello answer")
logger.warning("Display returned unknown sub-revision on Hello answer (%s)" % str(response))

logger.debug("HW sub-revision: %s" % (str(self.sub_revision)))

Expand Down
Binary file modified res/themes/5-inchTheme2/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 21 additions & 29 deletions res/themes/5-inchTheme2/theme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ static_images:
WIDTH: 480
HEIGHT: 800
static_text:
POS:
TEXT: "0"
X: 1
Y: 1
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 23
FONT_COLOR: 0, 0, 0
BACKGROUND_COLOR: 132, 154, 165
DISK_USED_LABEL:
TEXT: "Used:"
X: 124
Expand Down Expand Up @@ -50,15 +42,15 @@ STATS:
TEXT:
SHOW: True
SHOW_UNIT: True
X: 20
X: 285
Y: 40
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 23
FONT_COLOR: 255, 255, 255
BACKGROUND_COLOR: 132, 154, 165
GRAPH:
SHOW: True
X: 20
X: 300
Y: 70
WIDTH: 150
HEIGHT: 15
Expand All @@ -72,8 +64,8 @@ STATS:
TEXT:
SHOW: True
SHOW_UNIT: True
X: 20
Y: 92
X: 300
Y: 100
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 30
FONT_COLOR: 255, 255, 255
Expand All @@ -83,8 +75,8 @@ STATS:
TEXT:
SHOW: True
SHOW_UNIT: True
X: 20
Y: 100
X: 200
Y: 70
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 23
FONT_COLOR: 255, 255, 255
Expand All @@ -94,8 +86,8 @@ STATS:
PERCENTAGE:
GRAPH:
SHOW: True
X: 20
Y: 280
X: 300
Y: 260
WIDTH: 150
HEIGHT: 15
MIN_VALUE: 0
Expand All @@ -106,8 +98,8 @@ STATS:
TEXT:
SHOW: TRUE
SHOW_UNIT: True
X: 20
Y: 260
X: 285
Y: 230
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 23
FONT_COLOR: 255, 255, 255
Expand All @@ -116,8 +108,8 @@ STATS:
TEXT:
SHOW: TRUE
SHOW_UNIT: True
X: 20
Y: 300
X: 300
Y: 290
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 23
FONT_COLOR: 255, 255, 255
Expand All @@ -126,7 +118,7 @@ STATS:
TEXT:
SHOW: TRUE
SHOW_UNIT: True
X: 110
X: 200
Y: 260
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 23
Expand All @@ -137,8 +129,8 @@ STATS:
VIRTUAL:
GRAPH:
SHOW: True
X: 20
Y: 470
X: 300
Y: 450
WIDTH: 150
HEIGHT: 15
MIN_VALUE: 0
Expand All @@ -149,17 +141,17 @@ STATS:
USED:
SHOW: TRUE
SHOW_UNIT: True
X: 20
Y: 490
X: 300
Y: 480
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 23
FONT_COLOR: 255, 255, 255
BACKGROUND_COLOR: 132, 154, 165
PERCENT_TEXT:
SHOW: TRUE
SHOW_UNIT: True
X: 20
Y: 445
X: 285
Y: 420
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 23
FONT_COLOR: 255, 255, 255
Expand Down Expand Up @@ -213,7 +205,7 @@ STATS:
DAY:
TEXT:
SHOW: True
X: 200
X: 15
Y: 740
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 25
Expand All @@ -222,7 +214,7 @@ STATS:
HOUR:
TEXT:
SHOW: True
X: 200
X: 15
Y: 768
FONT: jetbrains-mono/JetBrainsMono-Bold.ttf
FONT_SIZE: 25
Expand Down