← Commit history
2-0mm-2p-zz-ms: symbol repaired (connector Conn_01x02)
3 files changed
+30−20
2-0mm-2p-zz-ms.kicad_sym+7−7@@ -1,19 +1,19 @@ (kicad_symbol_lib (version 20211014) (generator ds2sf_rect) (symbol "2.0mm-2P ZZ-MS" (in_bom yes) (on_board yes)- (property "Reference" "U" (at 0 5.08 0) (effects (font (size 1.27 1.27))))- (property "Value" "2.0mm-2P ZZ-MS" (at 0 -5.08 0) (effects (font (size 1.27 1.27))))+ (property "Reference" "J" (at 0 5.08 0) (effects (font (size 1.27 1.27))))+ (property "Value" "2.0mm-2P ZZ-MS" (at 0 -7.62 0) (effects (font (size 1.27 1.27)))) (property "Footprint" "" (at 0 0 0) (effects (font (size 1.27 1.27)) hide)) (symbol "2.0mm-2P ZZ-MS_0_1"- (rectangle (start -12.70 2.54) (end 12.70 -2.54)+ (rectangle (start -2.54 2.54) (end 2.54 -5.08) (stroke (width 0.254) (type default)) (fill (type background))) ) (symbol "2.0mm-2P ZZ-MS_1_1"- (pin passive line (at -17.78 0.00 0) (length 5.08)- (name "1" (effects (font (size 1.27 1.27))))+ (pin passive line (at -7.62 0.00 0) (length 5.08)+ (name "1" (effects (font (size 1.27 1.27)) hide)) (number "1" (effects (font (size 1.27 1.27)))) )- (pin passive line (at 17.78 0.00 180) (length 5.08)- (name "2" (effects (font (size 1.27 1.27))))+ (pin passive line (at -7.62 -2.54 0) (length 5.08)+ (name "2" (effects (font (size 1.27 1.27)) hide)) (number "2" (effects (font (size 1.27 1.27)))) ) )
2-0mm-2p-zz-ms.lbr+20−11@@ -50,7 +50,7 @@ <layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/> </layers> <library>-<description></description>+<description>SHOU HAN Wire To Board Connector, 插件,P=2mm. Unpolarised two-terminal part: the datasheet prints no pin numbers, so pins 1 and 2 follow the library convention</description> <packages> <package name="JST_PH_B2B-PH-K_1x02_P2.00mm_Vertical"> <description>JST, 2.00 mm pitch. JST PH series connector, B2B-PH-K</description>@@ -93,19 +93,20 @@ </packages> <symbols> <symbol name="2.0mm-2P ZZ-MS">- <wire x1="-12.7" y1="2.54" x2="12.7" y2="2.54" width="0.254" layer="94"/>- <wire x1="12.7" y1="2.54" x2="12.7" y2="-2.54" width="0.254" layer="94"/>- <wire x1="12.7" y1="-2.54" x2="-12.7" y2="-2.54" width="0.254" layer="94"/>- <wire x1="-12.7" y1="-2.54" x2="-12.7" y2="2.54" width="0.254" layer="94"/>+ <description>SHOU HAN Wire To Board Connector, 插件,P=2mm. Unpolarised two-terminal part: the datasheet prints no pin numbers, so pins 1 and 2 follow the library convention</description>+ <wire x1="-2.54" y1="2.54" x2="2.54" y2="2.54" width="0.254" layer="94"/>+ <wire x1="2.54" y1="2.54" x2="2.54" y2="-5.08" width="0.254" layer="94"/>+ <wire x1="2.54" y1="-5.08" x2="-2.54" y2="-5.08" width="0.254" layer="94"/>+ <wire x1="-2.54" y1="-5.08" x2="-2.54" y2="2.54" width="0.254" layer="94"/> <text x="0.0000" y="5.0800" size="1.27" layer="95" align="center">>NAME</text>- <text x="0.0000" y="-5.0800" size="1.27" layer="96" align="center">>VALUE</text>- <pin name="1" x="-17.78" y="0" length="middle" direction="pas"/>- <pin name="2" x="17.78" y="0" length="middle" direction="pas" rot="R180"/>+ <text x="0.0000" y="-7.6200" size="1.27" layer="96" align="center">>VALUE</text>+ <pin name="1" x="-7.62" y="0" length="middle" direction="pas"/>+ <pin name="2" x="-7.62" y="-2.54" length="middle" direction="pas"/> </symbol> </symbols> <devicesets>-<deviceset name="2.0mm-2P ZZ-MS" prefix="U">- <description></description>+<deviceset name="2.0mm-2P ZZ-MS" prefix="J">+ <description>SHOU HAN Wire To Board Connector, 插件,P=2mm. Unpolarised two-terminal part: the datasheet prints no pin numbers, so pins 1 and 2 follow the library convention</description> <gates> <gate name="G$1" symbol="2.0mm-2P ZZ-MS" x="0" y="0"/> </gates>@@ -115,7 +116,15 @@ <connect gate="G$1" pin="1" pad="1"/> <connect gate="G$1" pin="2" pad="2"/> </connects>- <technologies><technology name=""/></technologies>+ <technologies>+ <technology name="">+ <attribute name="MPN" value="2.0mm-2P ZZ-MS" constant="no"/>+ <attribute name="MANUFACTURER" value="SHOU HAN" constant="no"/>+ <attribute name="DATASHEET" value="https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8756607892521009152" constant="no"/>+ <attribute name="ADOM_WIKI" value="https://wiki.adom.inc/adom/2-0mm-2p-zz-ms" constant="no"/>+ <attribute name="LCSC_PN" value="C5368750" constant="no"/>+ </technology>+ </technologies> </device> </devices> </deviceset>
viewers/symbol.html+3−2@@ -23,7 +23,7 @@ rect.pad.hi{stroke:var(--hi);stroke-width:.15;paint-order:stroke} #tip .td{font-size:11px;color:var(--ink);margin-top:5px;line-height:1.4} </style></head><body> <div class=bar><span class=h>Schematic symbol</span><span class=sp></span></div>-<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-750 -150 1500 300' style='width:100%;height:100%'><rect x='-500.0' y='-100.0' width='1000.0' height='200.0' fill='#e35d5d22' stroke='#e35d5d' stroke-width='4'/><g class='pingroup' data-num='1' data-name='1'><line class='pinvis' x1='-700.0' y1='-0.0' x2='-500.0' y2='-0.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-700.0' y1='-0.0' x2='-500.0' y2='-0.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-600.0' y='45.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>1</text><text x='-470.0' y='0.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>1</text><g class='pingroup' data-num='2' data-name='2'><line class='pinvis' x1='700.0' y1='-0.0' x2='500.0' y2='-0.0' stroke='#dfe4ec' stroke-width='4'/><line x1='700.0' y1='-0.0' x2='500.0' y2='-0.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='600.0' y='-45.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>2</text><text x='470.0' y='0.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>2</text></svg></div>+<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-250 -200 500 400' style='width:100%;height:100%'><rect x='0.0' y='-150.0' width='200.0' height='300.0' fill='#e35d5d22' stroke='#e35d5d' stroke-width='4'/><g class='pingroup' data-num='1' data-name='1'><line class='pinvis' x1='-200.0' y1='-50.0' x2='0.0' y2='-50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-200.0' y1='-50.0' x2='0.0' y2='-50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-100.0' y='-5.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>1</text><text x='30.0' y='-50.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>1</text><g class='pingroup' data-num='2' data-name='2'><line class='pinvis' x1='-200.0' y1='50.0' x2='0.0' y2='50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-200.0' y1='50.0' x2='0.0' y2='50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-100.0' y='95.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>2</text><text x='30.0' y='50.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>2</text></svg></div> <div id=tip></div> <script> var KIND="symbol", MPN="ADOM/2-0MM-2P-ZZ-MS", PINS=[{"desc":"","name":"1","number":"1","type":""},{"desc":"","name":"2","number":"2","type":""}];@@ -44,7 +44,8 @@ function els(n){return [].slice.call(document.querySelectorAll('[data-num="'+n+' function clearHi(){[].slice.call(document.querySelectorAll('.hi')).forEach(function(e){e.classList.remove('hi');});} function hi(n){els(n).forEach(function(e){e.classList.add('hi');});} function post(n){try{parent.postMessage({type:'lbr-hover',pin:n===null?null:String(n),mpn:MPN},'*');}catch(_){}}-function showTip(n,x,y){var p=byNum[String(n)];if(!p)return;tip.innerHTML='<span class=tn></span><div class=tt></div><div class=td></div>';tip.querySelector('.tn').textContent=n+' '+(p.name||'');tip.querySelector('.tt').textContent=p.type||'';var d=p.desc||'';if(d)tip.querySelector('.td').textContent=d;else tip.querySelector('.td').style.display='none';tip.style.display='block';tip.style.left=(x+14)+'px';tip.style.top=(y+12)+'px';}+function ovName(el,pre,nm){el.textContent=pre;var r=nm,i;while((i=r.indexOf('~{'))>=0){el.appendChild(document.createTextNode(r.slice(0,i)));var a=r.slice(i+2),j=a.indexOf('}'),s=document.createElement('span');s.style.textDecoration='overline';s.textContent=j<0?a:a.slice(0,j);el.appendChild(s);r=j<0?'':a.slice(j+1);}el.appendChild(document.createTextNode(r));}+function showTip(n,x,y){var p=byNum[String(n)];if(!p)return;tip.innerHTML='<span class=tn></span><div class=tt></div><div class=td></div>';ovName(tip.querySelector('.tn'),n+' ',p.name||'');tip.querySelector('.tt').textContent=p.type||'';var d=p.desc||'';if(d)tip.querySelector('.td').textContent=d;else tip.querySelector('.td').style.display='none';tip.style.display='block';tip.style.left=(x+14)+'px';tip.style.top=(y+12)+'px';} [].slice.call(document.querySelectorAll('.pingroup,.pad')).forEach(function(g){ var n=g.getAttribute('data-num'); g.addEventListener('mouseenter',function(e){clearHi();hi(n);post(n);showTip(n,e.clientX,e.clientY);});