Skip to content

Commit

Permalink
Added additional character
Browse files Browse the repository at this point in the history
Created bitmaps for numbers and a few symbols
to allow a larger character set to be used
for messages
  • Loading branch information
asiriann committed Sep 18, 2016
1 parent eaf073e commit 3015a69
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion pov.py
Original file line number Diff line number Diff line change
@@ -28,6 +28,20 @@
'X' : ['0xBE','0xDD','0xE3','0xDD','0xBE'],
'Y' : ['0x8F','0xEF','0xE0','0xEF','0x8F'],
'Z' : ['0x9E','0xAE','0xB6','0xBA','0xBC'],
'0' : ['0xC1','0xAE','0xB6','0xBA','0xC1'],
'1' : ['0xFF','0xFE','0x80','0xDE','0xFF'],
'2' : ['0xCE','0xB6','0xBA','0xBC','0xDE'],
'3' : ['0xB9','0x96','0xAE','0xBE','0xBD'],
'4' : ['0xFB','0x80','0xDB','0xEB','0xF3'],
'5' : ['0xB1','0xAE','0xAE','0xAE','0x8D'],
'6' : ['0xF9','0xB6','0xB6','0xD6','0xE1'],
'7' : ['0x9F','0xAF','0xB7','0xB8','0xBF'],
'8' : ['0xC9','0xB6','0xB6','0xB6','0xC9'],
'9' : ['0xC3','0xB5','0xB6','0xB6','0xCF'],
':' : ['0xFF','0xFF','0xC9','0xC9','0xFF'],
'!' : ['0xFF','0xFF','0x86','0xFF','0xFF'],
',' : ['0xFF','0xFF','0xF9','0xFA','0xFF'],
'-' : ['0xFF','0xF7','0xF7','0xF7','0xFF'],
' ' : ['0xFF','0xFF','0xFF','0xFF','0xFF'],
}

@@ -156,4 +170,4 @@ def write_screen(self, screen):
for character in characters[letter]:
self.sketch.write(' Wire.write(' + character + ');\n')
self.increment_address()
self.check_page_break()
self.check_page_break()

0 comments on commit 3015a69

Please sign in to comment.