eric6/MicroPython/EspDevices.py

changeset 7161
728018c32b09
parent 7134
21d23ca51680
child 7173
f611c3b7313f
equal deleted inserted replaced
7159:85a9d6a753bd 7161:728018c32b09
19 from E5Gui.E5ProcessDialog import E5ProcessDialog 19 from E5Gui.E5ProcessDialog import E5ProcessDialog
20 from E5Gui.E5Application import e5App 20 from E5Gui.E5Application import e5App
21 21
22 from .MicroPythonDevices import MicroPythonDevice 22 from .MicroPythonDevices import MicroPythonDevice
23 from .MicroPythonWidget import HAS_QTCHART 23 from .MicroPythonWidget import HAS_QTCHART
24
25 import Preferences
24 26
25 27
26 class EspDevice(MicroPythonDevice): 28 class EspDevice(MicroPythonDevice):
27 """ 29 """
28 Class implementing the device for ESP32 and ESP8266 based boards. 30 Class implementing the device for ESP32 and ESP8266 based boards.
222 """ 224 """
223 Private slot to install the esptool package via pip. 225 Private slot to install the esptool package via pip.
224 """ 226 """
225 pip = e5App().getObject("Pip") 227 pip = e5App().getObject("Pip")
226 pip.installPackages(["esptool"], interpreter=sys.executable) 228 pip.installPackages(["esptool"], interpreter=sys.executable)
229
230 def getDocumentationUrl(self):
231 """
232 Public method to get the device documentation URL.
233
234 @return documentation URL of the device
235 @rtype str
236 """
237 return Preferences.getMicroPython("MicroPythonDocuUrl")

eric ide

mercurial