Skip to content

Commit fd8672b

Browse files
authored
Truncated division because its faster
1 parent c2a05b6 commit fd8672b

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
@@ -174,7 +174,7 @@ def draw_pixel(self, x, y, color):
174174
if x == 0:
175175
x = 1
176176

177-
addr = int(((self.width - x) * self.height + y)/8)
177+
addr = ((self.width - x) * self.height + y) // 8
178178
if color == Adafruit_EPD.RED:
179179
addr = addr + self.bw_bufsize
180180
current = self.sram.read8(addr)

0 commit comments

Comments
 (0)