eric6/MicroPython/UF2FlashDialog.py

changeset 8170
fb77bff32621
parent 8167
cdc1b6692766
child 8218
7c09585bd960
equal deleted inserted replaced
8169:139bd30c52c2 8170:fb77bff32621
368 " mounting it).</li>" 368 " mounting it).</li>"
369 "<li>Select the firmware file to be flashed and click the" 369 "<li>Select the firmware file to be flashed and click the"
370 " flash button.</li>" 370 " flash button.</li>"
371 "</ol>" 371 "</ol>"
372 ), 372 ),
373 "show_all": True,
373 "firmware": "CircuitPython", 374 "firmware": "CircuitPython",
374 }, 375 },
375 376
376 "circuitpython_rp2040": { 377 "circuitpython_rp2040": {
377 "volumes": { 378 "volumes": {
400 " mounting it).</li>" 401 " mounting it).</li>"
401 "<li>Select the firmware file to be flashed and click the" 402 "<li>Select the firmware file to be flashed and click the"
402 " flash button.</li>" 403 " flash button.</li>"
403 "</ol>" 404 "</ol>"
404 ), 405 ),
406 "show_all": False,
405 "firmware": "CircuitPython", 407 "firmware": "CircuitPython",
406 }, 408 },
407 409
408 "rp2040": { 410 "rp2040": {
409 "volumes": { 411 "volumes": {
432 " mounting it).</li>" 434 " mounting it).</li>"
433 "<li>Select the firmware file to be flashed and click the" 435 "<li>Select the firmware file to be flashed and click the"
434 " flash button.</li>" 436 " flash button.</li>"
435 "</ol>" 437 "</ol>"
436 ), 438 ),
439 "show_all": True,
437 "firmware": "MicroPython / CircuitPython", 440 "firmware": "MicroPython / CircuitPython",
438 }, 441 },
439 } 442 }
440 443
441 444
637 "<p>Follow the appropriate instructions below to set <b>one</b>" 640 "<p>Follow the appropriate instructions below to set <b>one</b>"
638 " board into 'bootloader' mode. Press <b>Refresh</b> when ready." 641 " board into 'bootloader' mode. Press <b>Refresh</b> when ready."
639 "</p>" 642 "</p>"
640 ) 643 )
641 for boardType in SupportedUF2Boards: 644 for boardType in SupportedUF2Boards:
642 htmlText += "<hr/>" + SupportedUF2Boards[boardType]["instructions"] 645 if SupportedUF2Boards[boardType]["show_all"]:
646 htmlText += (
647 "<hr/>" +
648 SupportedUF2Boards[boardType]["instructions"]
649 )
643 self.infoEdit.setHtml(htmlText) 650 self.infoEdit.setHtml(htmlText)
644 651
645 def __showSpecificInstructions(self, devices): 652 def __showSpecificInstructions(self, devices):
646 """ 653 """
647 Private method to show instructions for resetting devices to bootloader 654 Private method to show instructions for resetting devices to bootloader

eric ide

mercurial