eric6/Documentation/Source/eric6.MicroPython.EspFirmwareSelectionDialog.html

Fri, 15 May 2020 18:33:53 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 15 May 2020 18:33:53 +0200
changeset 7595
5db6bfeff23e
parent 7273
391d6b7b1eff
child 7989
a21d673a8f99
permissions
-rw-r--r--

MicroPython: added code to allow the user to select the flash mod for flashing the MicroPython firmware for ESP32/ESP8266 devices.

<!DOCTYPE html>
<html><head>
<title>eric6.MicroPython.EspFirmwareSelectionDialog</title>
<meta charset="UTF-8">
<style>
body {
    background: #EDECE6;
    margin: 0em 1em 10em 1em;
    color: black;
}

h1 { color: white; background: #85774A; }
h2 { color: white; background: #85774A; }
h3 { color: white; background: #9D936E; }
h4 { color: white; background: #9D936E; }
    
a { color: #BA6D36; }

</style>
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric6.MicroPython.EspFirmwareSelectionDialog</h1>

<p>
Module implementing a dialog to select the ESP chip type and the firmware to
be flashed.
</p>
<h3>Global Attributes</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Classes</h3>

<table>

<tr>
<td><a href="#EspFirmwareSelectionDialog">EspFirmwareSelectionDialog</a></td>
<td>Class implementing a dialog to select the ESP chip type and the firmware to be flashed.</td>
</tr>
</table>
<h3>Functions</h3>

<table>
<tr><td>None</td></tr>
</table>
<hr />
<hr />
<a NAME="EspFirmwareSelectionDialog" ID="EspFirmwareSelectionDialog"></a>
<h2>EspFirmwareSelectionDialog</h2>

<p>
    Class implementing a dialog to select the ESP chip type and the firmware to
    be flashed.
</p>
<h3>Derived from</h3>
QDialog, Ui_EspFirmwareSelectionDialog
<h3>Class Attributes</h3>

<table>
<tr><td>FlashModes</td></tr>
</table>
<h3>Class Methods</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>

<table>

<tr>
<td><a href="#EspFirmwareSelectionDialog.__init__">EspFirmwareSelectionDialog</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#EspFirmwareSelectionDialog.__updateOkButton">__updateOkButton</a></td>
<td>Private method to update the state of the OK button.</td>
</tr>
<tr>
<td><a href="#EspFirmwareSelectionDialog.getData">getData</a></td>
<td>Public method to get the entered data.</td>
</tr>
<tr>
<td><a href="#EspFirmwareSelectionDialog.on_espComboBox_currentTextChanged">on_espComboBox_currentTextChanged</a></td>
<td>Private slot to handle the selection of a chip type.</td>
</tr>
<tr>
<td><a href="#EspFirmwareSelectionDialog.on_firmwarePicker_textChanged">on_firmwarePicker_textChanged</a></td>
<td>Private slot handling a change of the firmware path.</td>
</tr>
</table>
<h3>Static Methods</h3>

<table>
<tr><td>None</td></tr>
</table>

<a NAME="EspFirmwareSelectionDialog.__init__" ID="EspFirmwareSelectionDialog.__init__"></a>
<h4>EspFirmwareSelectionDialog (Constructor)</h4>
<b>EspFirmwareSelectionDialog</b>(<i>addon=False, parent=None</i>)

<p>
        Constructor
</p>
<dl>

<dt><i>addon</i> (bool)</dt>
<dd>
flag indicating an addon firmware
</dd>
<dt><i>parent</i> (QWidget)</dt>
<dd>
reference to the parent widget
</dd>
</dl>
<a NAME="EspFirmwareSelectionDialog.__updateOkButton" ID="EspFirmwareSelectionDialog.__updateOkButton"></a>
<h4>EspFirmwareSelectionDialog.__updateOkButton</h4>
<b>__updateOkButton</b>(<i></i>)

<p>
        Private method to update the state of the OK button.
</p>
<a NAME="EspFirmwareSelectionDialog.getData" ID="EspFirmwareSelectionDialog.getData"></a>
<h4>EspFirmwareSelectionDialog.getData</h4>
<b>getData</b>(<i></i>)

<p>
        Public method to get the entered data.
</p>
<dl>
<dt>Returns:</dt>
<dd>
tuple containing the selected chip type, the path of the
            firmware file, the flash mode and the flash address
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
tuple of (str, str, str, str)
</dd>
</dl>
<a NAME="EspFirmwareSelectionDialog.on_espComboBox_currentTextChanged" ID="EspFirmwareSelectionDialog.on_espComboBox_currentTextChanged"></a>
<h4>EspFirmwareSelectionDialog.on_espComboBox_currentTextChanged</h4>
<b>on_espComboBox_currentTextChanged</b>(<i>chip</i>)

<p>
        Private slot to handle the selection of a chip type.
</p>
<dl>

<dt><i>chip</i> (str)</dt>
<dd>
selected chip type
</dd>
</dl>
<a NAME="EspFirmwareSelectionDialog.on_firmwarePicker_textChanged" ID="EspFirmwareSelectionDialog.on_firmwarePicker_textChanged"></a>
<h4>EspFirmwareSelectionDialog.on_firmwarePicker_textChanged</h4>
<b>on_firmwarePicker_textChanged</b>(<i>firmware</i>)

<p>
        Private slot handling a change of the firmware path.
</p>
<dl>

<dt><i>firmware</i> (str)</dt>
<dd>
path to the firmware
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial