diff --git a/src/python/adgui.py b/src/python/adgui.py index 9a207d53..3d46a196 100755 --- a/src/python/adgui.py +++ b/src/python/adgui.py @@ -293,6 +293,9 @@ class adgui(QObject): gsc.addPixmap(logo) self.memories.avr.setScene(gsc) self.memories.ee_avr.setScene(gsc) + self.memories.fuse_avr.setScene(gsc) + + self.disable_fuses() self.adgui.show() @@ -656,6 +659,7 @@ class adgui(QObject): ad.MSG_WARNING) self.memories.flash.setEnabled(True) self.memories.eeprom.setEnabled(True) + self.memories.fuses.setEnabled(True) sigstr = read_sig.hex(' ').upper() self.memories.deviceSig.setText(sigstr) p = ad.locate_part_by_signature(ad.cvar.part_list, read_sig) @@ -945,6 +949,11 @@ class adgui(QObject): if amnt > 0: self.memories.ee_buffer.setStyleSheet(self.buffer_full) + def disable_fuses(self): + # make all fuse labels and entries invisible + for w in self.memories.groupBox_13.children(): + w.setVisible(False) + def main(): gui = adgui(sys.argv) diff --git a/src/python/memories.ui b/src/python/memories.ui index 4e094066..eb891564 100644 --- a/src/python/memories.ui +++ b/src/python/memories.ui @@ -742,6 +742,477 @@ color: rgb(180, 180, 180); + + + Fuses + + + false + + + + + 40 + 230 + 481 + 141 + + + + Device: + + + + + 370 + 50 + 83 + 25 + + + + Read device into buffer + + + Read → + + + + + + 370 + 90 + 83 + 25 + + + + Programm buffer into device + + + ← Program + + + + + + 150 + 30 + 171 + 101 + + + + false + + + + + + + 40 + 30 + 481 + 191 + + + + File: + + + + false + + + + 370 + 60 + 83 + 25 + + + + Load section from file into buffer + + + Load → + + + + + false + + + + 370 + 120 + 83 + 25 + + + + Save memory buffer to file + + + ← Save + + + + + + 10 + 80 + 321 + 91 + + + + Format: + + + + + 10 + 30 + 141 + 23 + + + + Auto (load only) + + + true + + + + + + 10 + 50 + 141 + 23 + + + + ELF (load only) + + + + + + 170 + 20 + 107 + 23 + + + + Intel Hex + + + + + + 170 + 40 + 141 + 23 + + + + Motorola S-Record + + + + + + 170 + 60 + 107 + 23 + + + + Raw Binary + + + + + + + 10 + 40 + 271 + 25 + + + + + + + 290 + 40 + 41 + 25 + + + + Choose filename for load or save + + + … + + + + + + + 540 + 30 + 161 + 341 + + + + Fuses + + + + true + + + + 10 + 30 + 62 + 17 + + + + Fuse0 + + + + + + 70 + 30 + 61 + 25 + + + + + + true + + + + 10 + 60 + 62 + 17 + + + + Fuse1 + + + + + + 70 + 60 + 61 + 25 + + + + + + true + + + + 10 + 90 + 62 + 17 + + + + Fuse2 + + + + + + 70 + 90 + 61 + 25 + + + + + + true + + + + 10 + 120 + 62 + 17 + + + + Fuse3 + + + + + + 70 + 120 + 61 + 25 + + + + + + true + + + + 10 + 150 + 62 + 17 + + + + Fuse4 + + + + + + 70 + 150 + 61 + 25 + + + + + + true + + + + 10 + 180 + 62 + 17 + + + + Fuse5 + + + + + + 70 + 180 + 61 + 25 + + + + + + true + + + + 10 + 210 + 62 + 17 + + + + Fuse6 + + + + + + 70 + 210 + 61 + 25 + + + + + + true + + + + 10 + 240 + 62 + 17 + + + + Fuse7 + + + + + + 70 + 240 + 61 + 25 + + + + + + true + + + + 10 + 270 + 62 + 17 + + + + Fuse8 + + + + + + 70 + 270 + 61 + 25 + + + + +