changeset 6:d56ff430807e

Allow multiple dots in a row in 14seg
author Radomir Dopieralski <sheep-devel@sheep.art.pl>
date Wed, 11 May 2016 00:21:33 +0200
parents 3a29c19f9fd2
children 8ceb7e8002e6
files ht16k33_seg.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ht16k33_seg.py	Wed May 11 00:19:17 2016 +0200
+++ b/ht16k33_seg.py	Wed May 11 00:21:33 2016 +0200
@@ -134,7 +134,7 @@
             return
         if not 32 <= ord(char) <= 127:
             return
-        if char == '.':
+        if char == '.' and not self.buffer[index * 2 + 1] & 0b01000000:
             self.buffer[index * 2 + 1] |= 0b01000000
             return
         c = ord(char) * 2 + 32