standardize display() method

This commit is contained in:
txoof 2023-02-16 21:42:32 +01:00
commit b5d2818ea2
2 changed files with 4 additions and 4 deletions

View file

@ -260,7 +260,7 @@ class EPD:
buf[int((newx + newy*self.width) / 8)] &= ~(0x80 >> (y % 8))
return buf
def Display(self, image):
def display(self, image):
if (image == None):
return
# Width = (self.width % 8 == 0)? (self.width / 8 ): (self.width / 8 + 1)