From f8191bb9806271f721455e837baed57024620e34 Mon Sep 17 00:00:00 2001 From: Dmitry Brant Date: Thu, 18 Feb 2021 09:19:07 -0500 Subject: [PATCH] A bit of cleanup. --- .../python/lib/waveshare_epd/epd7in5_V2.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py index 81be0a7..7170843 100644 --- a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py +++ b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py @@ -7,10 +7,6 @@ # * | This version: V4.0 # * | Date : 2019-06-20 # # | Info : python demo -# -# Modifications by Dmitry Brant: -# - Oct 2020: New routines for faster SPI data transfer. -# # ----------------------------------------------------------------------------- # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documnetation files (the "Software"), to deal @@ -128,6 +124,7 @@ class EPD: if(imwidth == self.width and imheight == self.height): img = img.convert('1') elif(imwidth == self.height and imheight == self.width): + # image has correct dimensions, but needs to be rotated img = img.rotate(90, expand=True).convert('1') else: logging.warning("Wrong image dimensions: must be " + str(self.width) + "x" + str(self.height))