Skip to content

Commit

Permalink
Merge pull request #233 from makermelissa/main
Browse files Browse the repository at this point in the history
Fix rotation parameter for ST7789 displays
  • Loading branch information
makermelissa authored Nov 4, 2022
2 parents 2971dd1 + 2f8e05b commit 18ab65a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions adafruit-pitft.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"kernel_upgrade": True,
"overlay_src": "overlays/minipitft13-overlay.dts",
"overlay_dest": "{boot_dir}/overlays/drm-minipitft13.dtbo",
"overlay": "dtoverlay=drm-minipitft13,rotate={pitftrot},fps=60",
"overlay": "dtoverlay=drm-minipitft13,rotation={pitftrot},fps=60",
"width": 240,
"height": 240,
"fbcp_rotations": {
Expand Down Expand Up @@ -146,7 +146,7 @@
"kernel_upgrade": True,
"overlay_src": "overlays/minipitft114-overlay.dts",
"overlay_dest": "{boot_dir}/overlays/drm-minipitft114.dtbo",
"overlay": "dtoverlay=drm-minipitft114,rotate={pitftrot},fps=60",
"overlay": "dtoverlay=drm-minipitft114,rotation={pitftrot},fps=60",
"rotations": {
"0": None,
"90": "90",
Expand All @@ -169,7 +169,7 @@
"kernel_upgrade": True,
"overlay_src": "overlays/tftbonnet13-overlay.dts",
"overlay_dest": "{boot_dir}/overlays/drm-tftbonnet13.dtbo",
"overlay": "dtoverlay=drm-tftbonnet13,rotate={pitftrot},fps=60",
"overlay": "dtoverlay=drm-tftbonnet13,rotation={pitftrot},fps=60",
"width": 240,
"height": 240,
"fbcp_rotations": {
Expand Down Expand Up @@ -600,7 +600,7 @@ def main(user, display, rotation, install_type, reboot, boot):

if install_type == "uninstall":
uninstall()

if display in [str(x) for x in range(1, len(config) + 1)]:
pitft_config = config[int(display) - 1]
print("Display Type: {}".format(pitft_config["menulabel"]))
Expand Down

0 comments on commit 18ab65a

Please sign in to comment.