src/eric7/MicroPython/Devices/MicrobitDevices.py

branch
eric7
changeset 10683
779cda568acb
parent 10512
b7292f2691f9
child 10806
2f6df822e3b9
equal deleted inserted replaced
10682:47be220abdaf 10683:779cda568acb
956 scanResults[address].update(advType, res["rssi"], res["advertisement"]) 956 scanResults[address].update(advType, res["rssi"], res["advertisement"])
957 957
958 return scanResults, "" 958 return scanResults, ""
959 959
960 960
961 def createDevice( 961 def createDevice(microPythonWidget, deviceType, _vid, _pid, _boardName, serialNumber):
962 microPythonWidget, deviceType, vid, pid, boardName, serialNumber # noqa: U100
963 ):
964 """ 962 """
965 Function to instantiate a MicroPython device object. 963 Function to instantiate a MicroPython device object.
966 964
967 @param microPythonWidget reference to the main MicroPython widget 965 @param microPythonWidget reference to the main MicroPython widget
968 @type MicroPythonWidget 966 @type MicroPythonWidget
969 @param deviceType device type assigned to this device interface 967 @param deviceType device type assigned to this device interface
970 @type str 968 @type str
971 @param vid vendor ID 969 @param _vid vendor ID (unused)
972 @type int 970 @type int
973 @param pid product ID 971 @param _pid product ID (unused)
974 @type int 972 @type int
975 @param boardName name of the board 973 @param _boardName name of the board (unused)
976 @type str 974 @type str
977 @param serialNumber serial number of the board 975 @param serialNumber serial number of the board
978 @type str 976 @type str
979 @return reference to the instantiated device object 977 @return reference to the instantiated device object
980 @rtype MicrobitDevice 978 @rtype MicrobitDevice

eric ide

mercurial