322 ( |
322 ( |
323 self.tr("CircuitPython Libraries"), |
323 self.tr("CircuitPython Libraries"), |
324 Preferences.getMicroPython("CircuitPythonLibrariesUrl"), |
324 Preferences.getMicroPython("CircuitPythonLibrariesUrl"), |
325 ), |
325 ), |
326 ] |
326 ] |
|
327 |
|
328 |
|
329 def createDevice(microPythonWidget, deviceType, vid, pid): |
|
330 """ |
|
331 Function to instantiate a MicroPython device object. |
|
332 |
|
333 @param microPythonWidget reference to the main MicroPython widget |
|
334 @type MicroPythonWidget |
|
335 @param deviceType device type assigned to this device interface |
|
336 @type str |
|
337 @param vid vendor ID |
|
338 @type int |
|
339 @param pid product ID |
|
340 @type int |
|
341 @return reference to the instantiated device object |
|
342 @rtype CircuitPythonDevice |
|
343 """ |
|
344 return CircuitPythonDevice(microPythonWidget, deviceType) |