Skip to content

Commit 111a49e

Browse files
committed
speed up writing to the display by using writeList instead of loop through the rows
1 parent ac6e25a commit 111a49e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Adafruit_LED_Backpack/HT16K33.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ def set_led(self, led, value):
9292

9393
def write_display(self):
9494
"""Write display buffer to display hardware."""
95-
for i, value in enumerate(self.buffer):
96-
self._device.write8(i, value)
95+
self._device.writeList(0, self.buffer)
9796

9897
def clear(self):
9998
"""Clear contents of display buffer."""

0 commit comments

Comments
 (0)