We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7817031 + f414fb9 commit 876e647Copy full SHA for 876e647
PyPortal_User_Interface/code.py
@@ -64,12 +64,20 @@ def set_backlight(val):
64
board.DISPLAY.brightness = val
65
66
# Set the Backlight
67
-set_backlight(0.3)
+if board.board_id == "pyportal_titano":
68
+ # 0.3 brightness does not cause the display to be visible on the Titano
69
+ set_backlight(1)
70
+else:
71
+ set_backlight(0.3)
72
73
# Touchscreen setup
74
# ------Rotate 270:
-screen_width = 240
-screen_height = 320
75
76
+ screen_width = 320
77
+ screen_height = 480
78
79
+ screen_width = 240
80
+ screen_height = 320
81
ts = adafruit_touchscreen.Touchscreen(board.TOUCH_YD, board.TOUCH_YU,
82
board.TOUCH_XR, board.TOUCH_XL,
83
calibration=((5200, 59000),
0 commit comments