Truncated division because its faster
This commit is contained in:
parent
c2a05b64ab
commit
fd8672b292
1 changed files with 1 additions and 1 deletions
|
|
@ -174,7 +174,7 @@ class Adafruit_IL0373(Adafruit_EPD):
|
|||
if x == 0:
|
||||
x = 1
|
||||
|
||||
addr = int(((self.width - x) * self.height + y)/8)
|
||||
addr = ((self.width - x) * self.height + y) // 8
|
||||
if color == Adafruit_EPD.RED:
|
||||
addr = addr + self.bw_bufsize
|
||||
current = self.sram.read8(addr)
|
||||
|
|
|
|||
Loading…
Reference in a new issue