← Commit history

pin 1: carry the footprint's marker into the .lbr, the viewer and page.json (silk-marker, drawn, top-left)

Ray ·6523fe832a ·1mo ago ·parent 2b5b6f0
5 files changed +141−3
ncp1117dtarkg.lbr+1−1
@@ -72,7 +72,7 @@   <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>-</package>+<!--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> </packages> <symbols> <symbol name="NCP1117DTARKG">
package.json+2−1
@@ -24,6 +24,7 @@     "docs/hero.png",     "docs/ncp1117dtarkg-datasheet.pdf",     "viewers/symbol.html",-    "viewers/footprint.html"+    "viewers/footprint.html",+    "pads.json"   ] }\ No newline at end of file
pads.jsonadded+126
@@ -0,0 +1,126 @@+{+ "schema": "adom.pads/1",+ "slug": "ncp1117dtarkg",+ "footprint": "TO-252-2",+ "generated_from": {+  "footprint": "TO-252-2@sha256:18c28e5e147d5e9b",+  "pins": "page.json:component.pins",+  "overrides": null+ },+ "pin1": {+  "pad": "1",+  "at": [+   -5.04,+   -2.28+  ],+  "corner": "top-left",+  "source": "silk-marker",+  "derived_from": "TO-252-2@sha256:18c28e5e147d5e9b"+ },+ "pad_count": 3,+ "symbol_pins": [+  "1",+  "2",+  "3"+ ],+ "paste_apertures": 4,+ "issues": [+  {+   "kind": "pin-not-in-symbol",+   "pin": "TAB",+   "name": "Tab",+   "detail": "page.json describes pin \"TAB\" (Tab) from the datasheet, but the symbol has no such pin, so nothing can connect to it"+  }+ ],+ "pads": [+  {+   "pad": "1",+   "kind": "smd",+   "shape": "roundrect",+   "at": [+    -5.04,+    -2.28+   ],+   "rot": 0.0,+   "size": [+    2.2,+    1.2+   ],+   "layers": [+    "F.Cu",+    "F.Mask",+    "F.Paste"+   ],+   "thermal": false,+   "pin": "1",+   "name": "Adjust/Ground",+   "type": "input",+   "description": "For fixed-output variants (e.g. XT285 for 2.85 V, XT33 for 3.3 V, XT50 for 5.0 V, XT12 for 12 V), this is the Ground return pin. For the adjustable variant (XTA), this is the Adjust pin - feedback node with a 1.25 V reference (Vref = 1.238-1.262 V) and an adjust-pin current of ~52 μA (max 120 μA); output = Vref × (1 + R2/R1) + Iadj × R2.",+   "is_pin1": true,+   "source": {+    "geometry": "TO-252-2.kicad_mod",+    "meaning": "page.json:component.pins",+    "correspondence": "kicad: symbol pin number == pad name"+   }+  },+  {+   "pad": "2",+   "kind": "smd",+   "shape": "roundrect",+   "at": [+    1.26,+    0.0+   ],+   "rot": 0.0,+   "size": [+    6.4,+    5.8+   ],+   "layers": [+    "F.Cu",+    "F.Mask"+   ],+   "thermal": false,+   "pin": "2",+   "name": "Output",+   "type": "power_out",+   "description": "Regulated positive output. Sources up to 1.0 A (typical current limit 1.5 A, min 1.0 A, max 2.2 A). Requires a 10 μF output capacitor for stability. The DPAK heatsink tab is internally connected to this Output pin (pin 2).",+   "is_pin1": false,+   "source": {+    "geometry": "TO-252-2.kicad_mod",+    "meaning": "page.json:component.pins",+    "correspondence": "kicad: symbol pin number == pad name"+   }+  },+  {+   "pad": "3",+   "kind": "smd",+   "shape": "roundrect",+   "at": [+    -5.04,+    2.28+   ],+   "rot": 0.0,+   "size": [+    2.2,+    1.2+   ],+   "layers": [+    "F.Cu",+    "F.Mask",+    "F.Paste"+   ],+   "thermal": false,+   "pin": "3",+   "name": "Input",+   "type": "power_in",+   "description": "Unregulated positive input supply, up to 20 V maximum (Vin abs max = 20 V). Requires a 10 μF input capacitor. Output current must not exceed 1.0 A when Vin > 12 V. Dropout voltage typically 0.95 V at 100 mA, 1.07 V at 800 mA.",+   "is_pin1": false,+   "source": {+    "geometry": "TO-252-2.kicad_mod",+    "meaning": "page.json:component.pins",+    "correspondence": "kicad: symbol pin number == pad name"+   }+  }+ ]+}\ No newline at end of file
page.json+11
@@ -72,6 +72,17 @@     "viewers": {       "symbol": "viewers/symbol.html",       "footprint": "viewers/footprint.html"+    },+    "pin1": {+      "pad": "1",+      "at": [+        -5.04,+        -2.28+      ],+      "corner": "top-left",+      "source": "silk-marker",+      "derived_from": "TO-252-2@sha256:18c28e5e147d5e9b",+      "mark": "drawn"     }   },   "metadata": {
viewers/footprint.html+1−1
@@ -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>PCB footprint</span><span class=sp></span><button class="lyrtog on" data-lyr="copper"><span class="d" style="background:#e35d5d"></span>Copper</button><button class="lyrtog on" data-lyr="silk"><span class="d" style="background:#e6edf3"></span>Silkscreen</button><button class="lyrtog" data-lyr="fab"><span class="d" style="background:#8b949e"></span>Fab</button><button class="lyrtog" data-lyr="courtyard"><span class="d" style="background:#bc8cff"></span>Courtyard</button></div>-<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-6.790 -3.900 11.900 7.800' style='width:100%;height:100%'><line class='ly-silk' x1='-3.310' y1='-3.450' x2='-3.310' y2='-3.180' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-3.310' y1='3.450' x2='-3.310' y2='3.180' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='3.110' y1='-3.450' x2='-3.310' y2='-3.450' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='3.110' y1='3.450' x2='-3.310' y2='3.450' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-fab' x1='-5.810' y1='-2.655' x2='-5.810' y2='-1.905' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-5.810' y1='-1.905' x2='-3.110' y2='-1.905' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-5.810' y1='1.905' x2='-5.810' y2='2.655' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-5.810' y1='2.655' x2='-3.110' y2='2.655' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-3.110' y1='1.905' x2='-5.810' y2='1.905' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-2.705' y1='-2.655' x2='-5.810' y2='-2.655' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='3.110' y1='-2.700' x2='4.110' y2='-2.700' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='4.110' y1='-2.700' x2='4.110' y2='2.700' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='4.110' y1='2.700' x2='3.110' y2='2.700' stroke='#f472b6' stroke-width='0.100'/><rect class='ly-courtyard' x='-6.390' y='-3.500' width='11.100' height='7.000' fill='none' stroke='#4ade80' stroke-width='0.050'/><rect class='ly-copper pad' data-num='' data-name='' x='-1.940' y='-2.900' width='3.050' height='2.750' rx='0.688' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-0.415' y='-1.525' font-size='1.100' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'></text><rect class='ly-copper pad' data-num='' data-name='' x='-1.940' y='0.150' width='3.050' height='2.750' rx='0.688' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-0.415' y='1.525' font-size='1.100' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'></text><rect class='ly-copper pad' data-num='' data-name='' x='1.410' y='-2.900' width='3.050' height='2.750' rx='0.688' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.935' y='-1.525' font-size='1.100' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'></text><rect class='ly-copper pad' data-num='' data-name='' x='1.410' y='0.150' width='3.050' height='2.750' rx='0.688' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.935' y='1.525' font-size='1.100' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'></text><rect class='ly-copper pad' data-num='1' data-name='Adjust/Ground' x='-6.140' y='-2.880' width='2.200' height='1.200' rx='0.300' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-5.040' y='-2.280' font-size='0.720' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>1</text><rect class='ly-copper pad' data-num='2' data-name='Output' x='-1.940' y='-2.900' width='6.400' height='5.800' rx='1.450' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='1.260' y='0.000' font-size='1.100' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>2</text><rect class='ly-copper pad' data-num='3' data-name='Input' x='-6.140' y='1.680' width='2.200' height='1.200' rx='0.300' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-5.040' y='2.280' font-size='0.720' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>3</text></svg></div>+<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-6.790 -3.900 11.900 7.800' style='width:100%;height:100%'><line class='ly-silk' x1='-3.310' y1='-3.450' x2='-3.310' y2='-3.180' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-3.310' y1='3.450' x2='-3.310' y2='3.180' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='3.110' y1='-3.450' x2='-3.310' y2='-3.450' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='3.110' y1='3.450' x2='-3.310' y2='3.450' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-fab' x1='-5.810' y1='-2.655' x2='-5.810' y2='-1.905' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-5.810' y1='-1.905' x2='-3.110' y2='-1.905' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-5.810' y1='1.905' x2='-5.810' y2='2.655' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-5.810' y1='2.655' x2='-3.110' y2='2.655' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-3.110' y1='1.905' x2='-5.810' y2='1.905' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-2.705' y1='-2.655' x2='-5.810' y2='-2.655' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='3.110' y1='-2.700' x2='4.110' y2='-2.700' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='4.110' y1='-2.700' x2='4.110' y2='2.700' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='4.110' y1='2.700' x2='3.110' y2='2.700' stroke='#f472b6' stroke-width='0.100'/><rect class='ly-courtyard' x='-6.390' y='-3.500' width='11.100' height='7.000' fill='none' stroke='#4ade80' stroke-width='0.050'/><rect class='ly-copper pad' data-num='' data-name='' x='-1.940' y='-2.900' width='3.050' height='2.750' rx='0.688' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-0.415' y='-1.525' font-size='1.100' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'></text><rect class='ly-copper pad' data-num='' data-name='' x='-1.940' y='0.150' width='3.050' height='2.750' rx='0.688' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-0.415' y='1.525' font-size='1.100' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'></text><rect class='ly-copper pad' data-num='' data-name='' x='1.410' y='-2.900' width='3.050' height='2.750' rx='0.688' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.935' y='-1.525' font-size='1.100' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'></text><rect class='ly-copper pad' data-num='' data-name='' x='1.410' y='0.150' width='3.050' height='2.750' rx='0.688' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.935' y='1.525' font-size='1.100' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'></text><rect class='ly-copper pad' data-num='1' data-name='Adjust/Ground' x='-6.140' y='-2.880' width='2.200' height='1.200' rx='0.300' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-5.040' y='-2.280' font-size='0.720' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>1</text><rect class='ly-copper pad' data-num='2' data-name='Output' x='-1.940' y='-2.900' width='6.400' height='5.800' rx='1.450' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='1.260' y='0.000' font-size='1.100' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>2</text><rect class='ly-copper pad' data-num='3' data-name='Input' x='-6.140' y='1.680' width='2.200' height='1.200' rx='0.300' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-5.040' y='2.280' font-size='0.720' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>3</text><polygon class='ly-silk adom-pin1' points='-5.040,-3.140 -5.380,-3.610 -4.700,-3.610' fill='#d8b4fe' stroke='none'><title>pin 1</title></polygon></svg></div> <div id=tip></div> <script> var KIND="footprint", MPN="RAY/NCP1117DTARKG", PINS=[{"desc":"","name":"Adjust/Ground","number":"1","type":""},{"desc":"","name":"Output","number":"2","type":""},{"desc":"","name":"Input","number":"3","type":""}];