Read ANSI escape codes by KeyboardRecorderFromConsole

This commit is contained in:
Makoto Shimazu
2018-09-11 10:23:58 +09:00
parent 0a438843ee
commit 535793fcf8
2 changed files with 27 additions and 2 deletions

View File

@@ -54,4 +54,7 @@ class Bluetooth():
if cmd not in self.UART_CODES:
print('Unknown Command: {}'.format(cmd))
return
if self._dummy:
print('bluetooth: command({})'.format(cmd))
return
self.send(struct.pack('b', self.UART_CODES[cmd]))