21 |
21 |
22 class GenericMicroPythonDevice(MicroPythonDevice): |
22 class GenericMicroPythonDevice(MicroPythonDevice): |
23 """ |
23 """ |
24 Class implementing the device interface for generic MicroPython boards. |
24 Class implementing the device interface for generic MicroPython boards. |
25 """ |
25 """ |
26 def __init__(self, microPythonWidget, vid, pid, parent=None): |
26 def __init__(self, microPythonWidget, deviceType, vid, pid, parent=None): |
27 """ |
27 """ |
28 Constructor |
28 Constructor |
29 |
29 |
30 @param microPythonWidget reference to the main MicroPython widget |
30 @param microPythonWidget reference to the main MicroPython widget |
31 @type MicroPythonWidget |
31 @type MicroPythonWidget |
|
32 @param deviceType device type assigned to this device interface |
|
33 @type str |
32 @param vid vendor ID |
34 @param vid vendor ID |
33 @type int |
35 @type int |
34 @param pid product ID |
36 @param pid product ID |
35 @type int |
37 @type int |
36 @param parent reference to the parent object |
38 @param parent reference to the parent object |
37 @type QObject |
39 @type QObject |
38 """ |
40 """ |
39 super(GenericMicroPythonDevice, self).__init__(microPythonWidget, |
41 super(GenericMicroPythonDevice, self).__init__( |
40 parent) |
42 microPythonWidget, deviceType, parent) |
41 |
43 |
42 self.__directAccess = False |
44 self.__directAccess = False |
43 self.__deviceVolumeName = "" |
45 self.__deviceVolumeName = "" |
44 self.__workspace = "" |
46 self.__workspace = "" |
45 self.__deviceName = "" |
47 self.__deviceName = "" |