eric6/MicroPython/MicroPythonDevices.py

branch
micropython
changeset 7095
8e10acb1cd85
parent 7091
84d2a73b448a
child 7108
4f6133a01c6a
equal deleted inserted replaced
7094:d5f340dfb986 7095:8e10acb1cd85
289 commands = [c.encode("utf-8)") + b'\r' for c in commandsList] 289 commands = [c.encode("utf-8)") + b'\r' for c in commandsList]
290 commands.append(b'\r') 290 commands.append(b'\r')
291 commands.append(b'\x04') 291 commands.append(b'\x04')
292 rawOff = [b'\x02'] 292 rawOff = [b'\x02']
293 commandSequence = rawOn + newLine + commands + rawOff 293 commandSequence = rawOn + newLine + commands + rawOff
294 self.microPython.execute(commandSequence) 294 self.microPython.commandsInterface().executeAsync(commandSequence)
295 295
296 @pyqtSlot() 296 @pyqtSlot()
297 def handleDataFlood(self): 297 def handleDataFlood(self):
298 """ 298 """
299 Public slot handling a data floof from the device. 299 Public slot handling a data floof from the device.

eric ide

mercurial