← Commit history

orderable attributes: rebuild .lbr with adom-lbr 2.18.0 so MPN, MANUFACTURER and the distributor part numbers reach <technology> (LCSC_PN C7464026). The published library carried no attributes at all, so a BOM had nothing to buy from. Distributor PNs matched on exact MPN AND corroborating manufacturer.

Ray ·3488a34a62 ·1mo ago ·parent dd04803
2 files changed +36−16
ch340c.lbr+32−14
@@ -70,6 +70,18 @@   <smd name="14" x="2.4750" y="1.9050" dx="1.9500" dy="0.6000" layer="1"/>   <smd name="15" x="2.4750" y="3.1750" dx="1.9500" dy="0.6000" layer="1"/>   <smd name="16" x="2.4750" y="4.4450" dx="1.9500" dy="0.6000" layer="1"/>+  <polygon width="0.1200" layer="21">+    <vertex x="-2.6000" y="5.0100"/>+    <vertex x="-2.8400" y="5.3400"/>+    <vertex x="-2.3600" y="5.3400"/>+  </polygon>+  <polygon width="0.1000" layer="51">+    <vertex x="-0.9750" y="4.9500"/>+    <vertex x="1.9500" y="4.9500"/>+    <vertex x="1.9500" y="-4.9500"/>+    <vertex x="-1.9500" y="-4.9500"/>+    <vertex x="-1.9500" y="3.9750"/>+  </polygon>   <wire x1="-2.0600" y1="5.0600" x2="2.0600" y2="5.0600" width="0.1200" layer="21"/>   <wire x1="-2.0600" y1="5.0050" x2="-2.0600" y2="5.0600" width="0.1200" layer="21"/>   <wire x1="-2.0600" y1="-5.0600" x2="-2.0600" y2="-5.0050" width="0.1200" layer="21"/>@@ -78,7 +90,7 @@   <wire x1="2.0600" y1="-5.0600" x2="-2.0600" y2="-5.0600" width="0.1200" layer="21"/>   <text x="0" y="6.020" size="1.27" layer="25" align="bottom-center">&gt;NAME</text>   <text x="0" y="-6.020" size="1.27" layer="27" align="top-center">&gt;VALUE</text>-<!--adom-pin1--><polygon width="0.0500" layer="21"><vertex x="-2.6000" y="5.0100"/><vertex x="-2.8400" y="5.3400"/><vertex x="-2.3600" y="5.3400"/></polygon></package>+</package> </packages> <symbols> <symbol name="CH340C">@@ -96,12 +108,12 @@   <pin name="UD-" x="17.78" y="0" length="middle" direction="io" rot="R180"/>   <pin name="NC" x="17.78" y="-5.080000000000002" length="middle" direction="io" rot="R180"/>   <pin name="NC@2" x="17.78" y="-7.620000000000001" length="middle" direction="io" rot="R180"/>-  <pin name="~{CTS}" x="-17.78" y="7.619999999999999" length="middle" direction="in"/>-  <pin name="~{DSR}" x="-17.78" y="2.539999999999999" length="middle" direction="in"/>-  <pin name="~{RI}" x="-17.78" y="0" length="middle" direction="in"/>-  <pin name="~{DCD}" x="-17.78" y="5.079999999999999" length="middle" direction="in"/>-  <pin name="~{DTR}" x="17.78" y="10.16" length="middle" direction="out" rot="R180"/>-  <pin name="~{RTS}" x="17.78" y="7.619999999999999" length="middle" direction="out" rot="R180"/>+  <pin name="CTS" x="-17.78" y="7.619999999999999" length="middle" direction="in"/>+  <pin name="DSR" x="-17.78" y="2.539999999999999" length="middle" direction="in"/>+  <pin name="RI" x="-17.78" y="0" length="middle" direction="in"/>+  <pin name="DCD" x="-17.78" y="5.079999999999999" length="middle" direction="in"/>+  <pin name="DTR" x="17.78" y="10.16" length="middle" direction="out" rot="R180"/>+  <pin name="RTS" x="17.78" y="7.619999999999999" length="middle" direction="out" rot="R180"/>   <pin name="R232" x="-17.78" y="12.7" length="middle" direction="in"/>   <pin name="VCC" x="-17.78" y="-10.16" length="middle" direction="pwr"/> </symbol>@@ -123,16 +135,22 @@         <connect gate="G$1" pin="UD-" pad="6"/>         <connect gate="G$1" pin="NC" pad="7"/>         <connect gate="G$1" pin="NC@2" pad="8"/>-        <connect gate="G$1" pin="~{CTS}" pad="9"/>-        <connect gate="G$1" pin="~{DSR}" pad="10"/>-        <connect gate="G$1" pin="~{RI}" pad="11"/>-        <connect gate="G$1" pin="~{DCD}" pad="12"/>-        <connect gate="G$1" pin="~{DTR}" pad="13"/>-        <connect gate="G$1" pin="~{RTS}" pad="14"/>+        <connect gate="G$1" pin="CTS" pad="9"/>+        <connect gate="G$1" pin="DSR" pad="10"/>+        <connect gate="G$1" pin="RI" pad="11"/>+        <connect gate="G$1" pin="DCD" pad="12"/>+        <connect gate="G$1" pin="DTR" pad="13"/>+        <connect gate="G$1" pin="RTS" pad="14"/>         <connect gate="G$1" pin="R232" pad="15"/>         <connect gate="G$1" pin="VCC" pad="16"/>       </connects>-      <technologies><technology name=""/></technologies>+      <technologies>+        <technology name="">+          <attribute name="MPN" value="CH340C" constant="no"/>+          <attribute name="MANUFACTURER" value="WCH Jiangsu Qin Heng" constant="no"/>+          <attribute name="LCSC_PN" value="C7464026" constant="no"/>+        </technology>+      </technologies>     </device>   </devices> </deviceset>
page.json+4−2
@@ -26,7 +26,9 @@       "model_3d_step": "ch340c.step",       "lbr": "ch340c.lbr"     },-    "distributor_links": {},+    "distributor_links": {+      "lcsc": "C7464026"+    },     "pins": [       {         "number": "1",@@ -74,7 +76,7 @@         "number": "8",         "name": "OUT#/DTR#",         "type": "output",-        "description": "MODEM general-purpose output signal (software defined, active low). On CH340C batches whose lot code starts with 4 and whose last three digits are greater than B40, adding a 4.7 kΩ pull-down converts this pin to a second DTR#."+        "description": "MODEM general-purpose output signal (software defined, active low). On CH340C batches whose lot code starts with 4 and whose last three digits are greater than B40, adding a 4.7 k\u03a9 pull-down converts this pin to a second DTR#."       },       {         "number": "9",