eric6/MicroPython/MicroPythonDevices.py

changeset 8096
5425a9072300
parent 8092
c0d72dbba8bb
child 8117
aaa5e0eacd4e
equal deleted inserted replaced
8095:d8caff84ffcf 8096:5425a9072300
168 168
169 def getFoundDevices(): 169 def getFoundDevices():
170 """ 170 """
171 Function to check the serial ports for supported MicroPython devices. 171 Function to check the serial ports for supported MicroPython devices.
172 172
173 @return tuple containing a list of tuples with the board type, a 173 @return tuple containing a list of tuples with the board type, the port
174 description and the serial port it is connected at for known device 174 description, a description, the serial port it is connected at, the
175 types and a list of tuples with VID, PID and description for unknown 175 VID and PID for known device types and a list of tuples with VID, PID
176 devices 176 and description for unknown devices
177 @rtype tuple of (list of tuples of (str, str, str), list of tuples of 177 @rtype tuple of (list of tuples of (str, str, str, str, int, int),
178 (int, int, str) 178 list of tuples of (int, int, str)
179 """ 179 """
180 from PyQt5.QtSerialPort import QSerialPortInfo 180 from PyQt5.QtSerialPort import QSerialPortInfo
181 181
182 foundDevices = [] 182 foundDevices = []
183 unknownDevices = [] 183 unknownDevices = []
497 @param menu reference to the context menu 497 @param menu reference to the context menu
498 @type QMenu 498 @type QMenu
499 """ 499 """
500 pass 500 pass
501 501
502 def hasFlashMenuEntry(self):
503 """
504 Public method to check, if the device has its own flash menu entry.
505
506 @return flag indicating a specific flash menu entry
507 @rtype bool
508 """
509 return False
510
502 def hasTimeCommands(self): 511 def hasTimeCommands(self):
503 """ 512 """
504 Public method to check, if the device supports time commands. 513 Public method to check, if the device supports time commands.
505 514
506 The default returns True. 515 The default returns True.

eric ide

mercurial