← Commit history

pin map: the package TAB (symbol pin 4, GND) is pad 2, not a fourth pad - the footprint name says so. Without the map the connect dangled and the library failed validate, which also blocked the orderable attributes (LCSC_PN C194250). Now emitted.

Ray ·a3f7d59590 · ·parent a616356
2 files changed +45−22
mc78m05cdt-tp.lbr+42−22
@@ -50,13 +50,25 @@ <layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/> </layers> <library>-<description>TO-252-2 (symbol synthesized from footprint pads)</description>+<description></description> <packages>-<package name="TO-252-2">-  <description>TO-252-2</description>+<package name="MC78M05CDT-TP">+  <description>MC78M05CDT-TP</description>   <smd name="1" x="-5.0400" y="2.2800" dx="2.2000" dy="1.2000" layer="1"/>   <smd name="2" x="1.2600" y="-0.0000" dx="6.4000" dy="5.8000" layer="1"/>   <smd name="3" x="-5.0400" y="-2.2800" dx="2.2000" dy="1.2000" layer="1"/>+  <polygon width="0.1200" layer="21">+    <vertex x="-5.0400" y="3.1400"/>+    <vertex x="-5.3800" y="3.6100"/>+    <vertex x="-4.7000" y="3.6100"/>+  </polygon>+  <polygon width="0.1000" layer="51">+    <vertex x="3.1100" y="3.2500"/>+    <vertex x="3.1100" y="-3.2500"/>+    <vertex x="-3.1100" y="-3.2500"/>+    <vertex x="-3.1100" y="2.2500"/>+    <vertex x="-2.1100" y="3.2500"/>+  </polygon>   <wire x1="-3.3100" y1="3.4500" x2="-3.3100" y2="3.1800" width="0.1200" layer="21"/>   <wire x1="-3.3100" y1="-3.4500" x2="-3.3100" y2="-3.1800" width="0.1200" layer="21"/>   <wire x1="3.1100" y1="3.4500" x2="-3.3100" y2="3.4500" width="0.1200" layer="21"/>@@ -72,35 +84,43 @@   <wire x1="4.1100" y1="-2.7000" x2="3.1100" y2="-2.7000" width="0.1000" layer="51"/>   <text x="0" y="4.050" size="1.27" layer="25" align="bottom-center">&gt;NAME</text>   <text x="0" y="-4.050" size="1.27" layer="27" align="top-center">&gt;VALUE</text>-<!--adom-pin1--><polygon width="0.0500" layer="21"><vertex x="-5.0400" y="3.1400"/><vertex x="-5.3800" y="3.6100"/><vertex x="-4.7000" y="3.6100"/></polygon></package>+</package> </packages> <symbols>-<symbol name="TO-252-2">-  <wire x1="-7.62" y1="3.81" x2="7.62" y2="3.81" width="0.254" layer="94"/>-  <wire x1="7.62" y1="3.81" x2="7.62" y2="-3.81" width="0.254" layer="94"/>-  <wire x1="7.62" y1="-3.81" x2="-7.62" y2="-3.81" width="0.254" layer="94"/>-  <wire x1="-7.62" y1="-3.81" x2="-7.62" y2="3.81" width="0.254" layer="94"/>-  <text x="0" y="6.35" size="1.27" layer="95" align="bottom-center">&gt;NAME</text>-  <text x="0" y="-6.35" size="1.27" layer="96" align="top-center">&gt;VALUE</text>-  <pin name="1" x="-12.7" y="2.54" length="short" direction="pas"/>-  <pin name="2" x="-12.7" y="0" length="short" direction="pas"/>-  <pin name="3" x="12.7" y="2.54" length="short" direction="pas" rot="R180"/>+<symbol name="MC78M05CDT-TP">+  <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="-5.08" width="0.254" layer="94"/>+  <wire x1="12.7" y1="-5.08" x2="-12.7" y2="-5.08" width="0.254" layer="94"/>+  <wire x1="-12.7" y1="-5.08" x2="-12.7" y2="2.54" width="0.254" layer="94"/>+  <text x="0" y="5.08" size="1.27" layer="95" align="bottom-center">&gt;NAME</text>+  <text x="0" y="-7.62" size="1.27" layer="96" align="top-center">&gt;VALUE</text>+  <pin name="IN" x="-17.78" y="0" length="middle" direction="pwr"/>+  <pin name="GND" x="-17.78" y="-2.54" length="middle" direction="pwr"/>+  <pin name="GND@2" x="17.78" y="0" length="middle" direction="pwr" rot="R180"/>+  <pin name="OUT" x="17.78" y="-2.54" length="middle" direction="out" rot="R180"/> </symbol> </symbols> <devicesets>-<deviceset name="TO-252-2" prefix="U">-  <description>TO-252-2 (symbol synthesized from footprint pads)</description>+<deviceset name="MC78M05CDT-TP" prefix="U">+  <description></description>   <gates>-    <gate name="G$1" symbol="TO-252-2" x="0" y="0"/>+    <gate name="G$1" symbol="MC78M05CDT-TP" x="0" y="0"/>   </gates>   <devices>-    <device name="" package="TO-252-2">+    <device name="" package="MC78M05CDT-TP">       <connects>-        <connect gate="G$1" pin="1" pad="1"/>-        <connect gate="G$1" pin="2" pad="2"/>-        <connect gate="G$1" pin="3" pad="3"/>+        <connect gate="G$1" pin="IN" pad="1"/>+        <connect gate="G$1" pin="GND" pad="2"/>+        <connect gate="G$1" pin="GND@2" pad="2"/>+        <connect gate="G$1" pin="OUT" pad="3"/>       </connects>-      <technologies><technology name=""/></technologies>+      <technologies>+        <technology name="">+          <attribute name="MPN" value="MC78M05CDT-TP" constant="no"/>+          <attribute name="MANUFACTURER" value="MCC Micro Commercial Components" constant="no"/>+          <attribute name="LCSC_PN" value="C194250" constant="no"/>+        </technology>+      </technologies>     </device>   </devices> </deviceset>
pinmap.jsonadded+3
@@ -0,0 +1,3 @@+{+ "4": "2"+}\ No newline at end of file