Merge pull request #256 from loiccoyle/master
remove unused linewidth code
This commit is contained in:
commit
04115ac1a4
2 changed files with 0 additions and 15 deletions
|
@ -309,11 +309,6 @@ class EPD:
|
||||||
image : Image data
|
image : Image data
|
||||||
'''
|
'''
|
||||||
def displayPartial(self, image):
|
def displayPartial(self, image):
|
||||||
if self.width%8 == 0:
|
|
||||||
linewidth = int(self.width/8)
|
|
||||||
else:
|
|
||||||
linewidth = int(self.width/8) + 1
|
|
||||||
|
|
||||||
epdconfig.digital_write(self.reset_pin, 0)
|
epdconfig.digital_write(self.reset_pin, 0)
|
||||||
epdconfig.delay_ms(1)
|
epdconfig.delay_ms(1)
|
||||||
epdconfig.digital_write(self.reset_pin, 1)
|
epdconfig.digital_write(self.reset_pin, 1)
|
||||||
|
@ -355,11 +350,6 @@ class EPD:
|
||||||
image : Image data
|
image : Image data
|
||||||
'''
|
'''
|
||||||
def displayPartBaseImage(self, image):
|
def displayPartBaseImage(self, image):
|
||||||
if self.width%8 == 0:
|
|
||||||
linewidth = int(self.width/8)
|
|
||||||
else:
|
|
||||||
linewidth = int(self.width/8) + 1
|
|
||||||
|
|
||||||
self.send_command(0x24)
|
self.send_command(0x24)
|
||||||
self.send_data2(image)
|
self.send_data2(image)
|
||||||
|
|
||||||
|
|
|
@ -163,11 +163,6 @@ class EPD:
|
||||||
|
|
||||||
# display image
|
# display image
|
||||||
def display(self, imageblack, imagered):
|
def display(self, imageblack, imagered):
|
||||||
if self.width%8 == 0:
|
|
||||||
linewidth = int(self.width/8)
|
|
||||||
else:
|
|
||||||
linewidth = int(self.width/8) + 1
|
|
||||||
|
|
||||||
self.send_command(0x24)
|
self.send_command(0x24)
|
||||||
self.send_data2(imageblack)
|
self.send_data2(imageblack)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue