src/eric7/MicroPython/RP2040Devices.py

branch
eric7
changeset 9738
4ae976ee5339
parent 9653
e67609152c5e
child 9747
b7976868d5b0
equal deleted inserted replaced
9737:5e05b2089daf 9738:4ae976ee5339
191 Preferences.getMicroPython("CircuitPythonLibrariesUrl"), 191 Preferences.getMicroPython("CircuitPythonLibrariesUrl"),
192 ), 192 ),
193 ] 193 ]
194 194
195 195
196 def createDevice(microPythonWidget, deviceType, vid, pid): 196 def createDevice(microPythonWidget, deviceType, vid, pid, boardName):
197 """ 197 """
198 Function to instantiate a MicroPython device object. 198 Function to instantiate a MicroPython device object.
199 199
200 @param microPythonWidget reference to the main MicroPython widget 200 @param microPythonWidget reference to the main MicroPython widget
201 @type MicroPythonWidget 201 @type MicroPythonWidget
203 @type str 203 @type str
204 @param vid vendor ID 204 @param vid vendor ID
205 @type int 205 @type int
206 @param pid product ID 206 @param pid product ID
207 @type int 207 @type int
208 @param boardName name of the board
209 @type str
208 @return reference to the instantiated device object 210 @return reference to the instantiated device object
209 @rtype RP2040Device 211 @rtype RP2040Device
210 """ 212 """
211 return RP2040Device(microPythonWidget, deviceType) 213 return RP2040Device(microPythonWidget, deviceType)

eric ide

mercurial