Skip to content

Commit de67faa

Browse files
author
Melissa LeBlanc-Williams
committed
Fixed Spaces showing as Zero on 7-Segment Display
1 parent 3f204cb commit de67faa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_ht16k33/segments.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,8 @@ def _put(self, char, index=0):
250250
elif char in '0123456789':
251251
character = ord(char) - 48
252252
elif char == ' ':
253-
character = 0x00
253+
self._set_buffer(index, 0x00)
254+
return
254255
elif char == ':':
255256
self._set_buffer(4, 0x02)
256257
return

0 commit comments

Comments
 (0)