Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions brd2svg/and/all.packages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@
<package name='wifly_gsx' ic='no' />
<package name='xbee-smd' ic='no' />

<map package='micro_usb_b_1050170001' to='1050170001' />
<map package='qfn_7mm' to='ufqfpn48' />

<map package='1x01' to='1X01_LOCK' />
<map package='1x02' to='1X02_LOCK' />
Expand Down
10 changes: 9 additions & 1 deletion brd2svg/brdapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1695,7 +1695,13 @@ void BrdApplication::addSubparts(QDomElement & root, QDomElement & paramsRoot, Q
// ADAFRUIT 2016-06-16: MICROBUILDER LIBRARY KLUDGE:
// I think all these different names could just be
// done in and/all.packages.txt file (using 'map')
if((name == "0805-no") || (name == "0805") || (name == "_0805mp") || (name == "c0805") || (name == "r0805")) {
if((name == "1608-no") || (name == "1608") || (name == "_1608mp") || (name == "c1608") || (name == "r1608")) {
// Rename generic 1608 to resistor or cap as needed,
// based on parent element name (starts with 'C' or 'R').
QString elementName = package.parentNode().toElement().attribute("name", "").toUpper();
if( elementName[0] == 'C') name = "1608-cap";
else if(elementName[0] == 'R') name = "1608-res";
} if((name == "0805-no") || (name == "0805") || (name == "_0805mp") || (name == "c0805") || (name == "r0805")) {
// Rename generic 0805 to resistor or cap as needed,
// based on parent element name (starts with 'C' or 'R').
QString elementName = package.parentNode().toElement().attribute("name", "").toUpper();
Expand All @@ -1707,6 +1713,8 @@ void BrdApplication::addSubparts(QDomElement & root, QDomElement & paramsRoot, Q
QString elementName = package.parentNode().toElement().attribute("name", "").toUpper();
if( elementName[0] == 'C') name = "0603-cap";
else if(elementName[0] == 'R') name = "0603-res";
else if(elementName[0] == 'L') name = "0603-led-green";
else if(elementName[0] == 'F') name = "0603-fuse";
} else if(name == "chipled_0805_nooutline") {
// Rename generic chip LED to suitable color,
// based on parent element value ("RED", "GREEN", etc.).
Expand Down
8 changes: 8 additions & 0 deletions subparts/breadboard/0603-fuse.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions subparts/breadboard/1608-cap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions subparts/breadboard/1608-res.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions subparts/breadboard/micro_usb_b_1050170001.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions subparts/breadboard/nw3-a03-05.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 68 additions & 0 deletions subparts/breadboard/sot25.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.