282 rawOn = [ # sequence of commands to enter raw mode |
282 rawOn = [ # sequence of commands to enter raw mode |
283 b'\x02', # Ctrl-B: exit raw repl (just in case) |
283 b'\x02', # Ctrl-B: exit raw repl (just in case) |
284 b'\r\x03\x03', # Ctrl-C twice: interrupt any running program |
284 b'\r\x03\x03', # Ctrl-C twice: interrupt any running program |
285 b'\r\x01', # Ctrl-A: enter raw REPL |
285 b'\r\x01', # Ctrl-A: enter raw REPL |
286 ] |
286 ] |
287 newLine = [b'print("\\n")\r',] |
287 newLine = [b'print("\\n")\r', ] |
288 commands = [c.encode("utf-8)") + b'\r' for c in commandsList] |
288 commands = [c.encode("utf-8)") + b'\r' for c in commandsList] |
289 commands.append(b'\r') |
289 commands.append(b'\r') |
290 commands.append(b'\x04') |
290 commands.append(b'\x04') |
291 rawOff = [b'\x02'] |
291 rawOff = [b'\x02'] |
292 commandSequence = rawOn + newLine + commands + rawOff |
292 commandSequence = rawOn + newLine + commands + rawOff |
293 self.microPython.execute(commandSequence) |
293 self.microPython.execute(commandSequence) |
|
294 |
|
295 @pyqtSlot() |
|
296 def handleDataFlood(self): |
|
297 """ |
|
298 Public slot handling a data floof from the device. |
|
299 """ |
|
300 pass |