Skip to content

Commit e4b1946

Browse files
authored
Merge pull request #4 from adafruit/tannewt-patch-1
Truncated division because its faster
2 parents 455a082 + fd8672b commit e4b1946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_epd/il0373.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def draw_pixel(self, x, y, color):
206206
if x == 0:
207207
x = 1
208208

209-
addr = int(((self.width - x) * self.height + y)/8)
209+
addr = ((self.width - x) * self.height + y) // 8
210210
if color == Adafruit_EPD.RED:
211211
addr = addr + self.bw_bufsize
212212
current = self.sram.read8(addr)

0 commit comments

Comments
 (0)