Skip to content

Commit 3dead93

Browse files
authored
Merge pull request #25 from caternuson/iss22
Fix for #22
2 parents 38a19fb + 37feab0 commit 3dead93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

adafruit_ht16k33/segments.py

+4
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ def _put(self, char, index=0):
182182
character = ord(char) * 2 - 64
183183
self._set_buffer(index * 2, CHARS[1 + character])
184184
self._set_buffer(index * 2 + 1, CHARS[character])
185+
if self._auto_write:
186+
self.show()
185187

186188
def _push(self, char):
187189
"""Scroll the display and add a character at the end."""
@@ -255,6 +257,8 @@ def _put(self, char, index=0):
255257
else:
256258
return
257259
self._set_buffer(index, NUMBERS[character])
260+
if self._auto_write:
261+
self.show()
258262

259263
class BigSeg7x4(Seg7x4):
260264
"""Numeric 7-segment display. It has the same methods as the alphanumeric display, but only

0 commit comments

Comments
 (0)