FlashFirmware#
- class QPolargraph.FlashFirmware.FlashDialog(parent=None, message=None)[source]#
Bases:
QDialogDialog to detect an attached Arduino and flash the acam3 firmware.
Enumerates serial ports using
QSerialPortInfo, filters by known Arduino USB vendor IDs, and delegates the three-step flash sequence (library install, compile, upload) to a background_FlashWorkerthread. Requiresarduino-clito be installed and onPATH.- Parameters:
parent (QtWidgets.QWidget, optional) – Parent widget.
message (str, optional) – Explanatory text shown above the form. Use this when the dialog is opened automatically (e.g. because no acam3 device was found) so the user understands why it appeared.