chiark
/
gitweb
/
~ianmdlvl
/
cura.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Open the serial port in the thread, so it no longer blocks the GUI during auto-detect...
[cura.git]
/
Cura
/
avr_isp
/
chipDB.py
1
\r
2
avrChipDB = {
\r
3
'ATMega1280': {
\r
4
'signature': [0x1E, 0x97, 0x03],
\r
5
'pageSize': 128,
\r
6
'pageCount': 512,
\r
7
},
\r
8
'ATMega2560': {
\r
9
'signature': [0x1E, 0x98, 0x01],
\r
10
'pageSize': 128,
\r
11
'pageCount': 1024,
\r
12
},
\r
13
}
\r
14
\r
15
def getChipFromDB(sig):
\r
16
for chip in avrChipDB.values():
\r
17
if chip['signature'] == sig:
\r
18
return chip
\r
19
return False
\r
20
\r