Skip to content

Commit

Permalink
Faster Blank
Browse files Browse the repository at this point in the history
  • Loading branch information
schnoog committed Jul 18, 2018
1 parent 275eff1 commit 4d7cea0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions epaper4in2.py
Expand Up @@ -154,10 +154,12 @@ def display_frame(self, frame_buffer):
self._command(DATA_START_TRANSMISSION_1)
self.dc(1)
self.cs(0)
msg = bytearray()
# msg = bytearray()
bytenum = self.width * self.height // 8
msg = bytearray([0xFF] * bytenum)
print("PrepareBlank")
for i in range(0, self.width * self.height // 8):
msg.extend(bytearray([0xFF]))
# for i in range(0, self.width * self.height // 8):
# msg.extend(bytearray([0xFF]))
print("Send blank")
self._data(msg)
self.cs(1)
Expand Down

0 comments on commit 4d7cea0

Please sign in to comment.