summaryrefslogtreecommitdiff
path: root/utilities
diff options
context:
space:
mode:
Diffstat (limited to 'utilities')
-rw-r--r--utilities/blinkenrocket.py2
-rw-r--r--utilities/test_blinkenrocket.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/utilities/blinkenrocket.py b/utilities/blinkenrocket.py
index a6afe8a..01c7d73 100644
--- a/utilities/blinkenrocket.py
+++ b/utilities/blinkenrocket.py
@@ -195,6 +195,7 @@ class blinkenrocket():
eeprom_size = 65536
startcode = chr(0x99)
patterncode = chr(0xA9)
+ endcode = chr(0x84)
frames = []
def __init__(self,eeprom_size=65536):
@@ -211,6 +212,7 @@ class blinkenrocket():
for frame in self.frames:
output.extend([self.patterncode,self.patterncode])
output.extend(frame.getRepresentation())
+ output.extend([self.endcode,self.endcode])
return output
diff --git a/utilities/test_blinkenrocket.py b/utilities/test_blinkenrocket.py
index b2da0fd..62bd0e3 100644
--- a/utilities/test_blinkenrocket.py
+++ b/utilities/test_blinkenrocket.py
@@ -110,8 +110,8 @@ class TestBlinkenrocket(unittest.TestCase):
self.assertEquals(text.getRepresentation(),[chr(0x01 << 4), chr(4),chr(7 << 4 | 8),chr(1 << 4 | 0),'M','U','Z','Y'])
br = blinkenrocket()
br.addFrame(text)
- expect = [chr(0x99),chr(0x99),chr(0xA9),chr(0xA9),chr(0x01 << 4), chr(4),chr(7 << 4 | 8),chr(1 << 4 | 0),'M','U','Z','Y']
+ expect = [chr(0x99),chr(0x99),chr(0xA9),chr(0xA9),chr(0x01 << 4), chr(4),chr(7 << 4 | 8),chr(1 << 4 | 0),'M','U','Z','Y',chr(0x84),chr(0x84)]
self.assertEquals(br.getMessage(),expect)
if __name__ == '__main__':
- unittest.main() \ No newline at end of file
+ unittest.main()