71 "description": "PyBoard", |
71 "description": "PyBoard", |
72 "icon": "micropython48", |
72 "icon": "micropython48", |
73 }, |
73 }, |
74 } |
74 } |
75 |
75 |
|
76 IgnoredBoards = ( |
|
77 (0x8086, 0x9c3d), |
|
78 ) |
|
79 |
76 |
80 |
77 def getSupportedDevices(): |
81 def getSupportedDevices(): |
78 """ |
82 """ |
79 Function to get a list of supported MicroPython devices. |
83 Function to get a list of supported MicroPython devices. |
80 |
84 |
115 foundDevices.append( |
119 foundDevices.append( |
116 (board, SupportedBoards[board]["description"], |
120 (board, SupportedBoards[board]["description"], |
117 port.portName())) |
121 port.portName())) |
118 supported = True |
122 supported = True |
119 if not supported: |
123 if not supported: |
120 if vid and pid: |
124 if vid and pid and (vid, pid) not in IgnoredBoards: |
121 unknownDevices.append((vid, pid, port.description())) |
125 unknownDevices.append((vid, pid, port.description())) |
122 logging.debug("Unknown device: (0x%04x:0x%04x %s)", |
126 logging.debug("Unknown device: (0x%04x:0x%04x %s)", |
123 vid, pid, port.description()) |
127 vid, pid, port.description()) |
124 |
128 |
125 return foundDevices, unknownDevices |
129 return foundDevices, unknownDevices |