mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Add 'plugins/USBPrinting/' from commit 'b28ca0881a
'
git-subtree-dir: plugins/USBPrinting git-subtree-mainline:3823afd8cc
git-subtree-split:b28ca0881a
This commit is contained in:
commit
63e8cf72a3
10 changed files with 1204 additions and 0 deletions
25
plugins/USBPrinting/avr_isp/chipDB.py
Normal file
25
plugins/USBPrinting/avr_isp/chipDB.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
"""
|
||||
Database of AVR chips for avr_isp programming. Contains signatures and flash sizes from the AVR datasheets.
|
||||
To support more chips add the relevant data to the avrChipDB list.
|
||||
This is a python 3 conversion of the code created by David Braam for the Cura project.
|
||||
"""
|
||||
|
||||
avrChipDB = {
|
||||
'ATMega1280': {
|
||||
'signature': [0x1E, 0x97, 0x03],
|
||||
'pageSize': 128,
|
||||
'pageCount': 512,
|
||||
},
|
||||
'ATMega2560': {
|
||||
'signature': [0x1E, 0x98, 0x01],
|
||||
'pageSize': 128,
|
||||
'pageCount': 1024,
|
||||
},
|
||||
}
|
||||
|
||||
def getChipFromDB(sig):
|
||||
for chip in avrChipDB.values():
|
||||
if chip['signature'] == sig:
|
||||
return chip
|
||||
return False
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue