7159:85a9d6a753bd | 7161:728018c32b09 |
---|---|
19 | 19 |
20 from .MicroPythonDevices import MicroPythonDevice | 20 from .MicroPythonDevices import MicroPythonDevice |
21 from .MicroPythonWidget import HAS_QTCHART | 21 from .MicroPythonWidget import HAS_QTCHART |
22 | 22 |
23 import Utilities | 23 import Utilities |
24 import Preferences | |
24 | 25 |
25 | 26 |
26 class CircuitPythonDevice(MicroPythonDevice): | 27 class CircuitPythonDevice(MicroPythonDevice): |
27 """ | 28 """ |
28 Class implementing the device for CircuitPython boards. | 29 Class implementing the device for CircuitPython boards. |
228 "All Files (*)")) | 229 "All Files (*)")) |
229 | 230 |
230 for libraryFile in libraryFiles: | 231 for libraryFile in libraryFiles: |
231 if os.path.exists(libraryFile): | 232 if os.path.exists(libraryFile): |
232 shutil.copy2(libraryFile, target) | 233 shutil.copy2(libraryFile, target) |
234 | |
235 def getDocumentationUrl(self): | |
236 """ | |
237 Public method to get the device documentation URL. | |
238 | |
239 @return documentation URL of the device | |
240 @rtype str | |
241 """ | |
242 return Preferences.getMicroPython("CircuitPythonDocuUrl") |