← Commit history

pin 1: carry the footprint's marker into the .lbr, the viewer and page.json (pad-position, synthesised, bottom-right)

Ray ·0655903e29 ·1mo ago ·parent ed10794
5 files changed +118−3
l4940v5.lbr+1−1
@@ -73,7 +73,7 @@   <wire x1="4.3900" y1="3.1500" x2="4.3900" y2="1.8800" width="0.1000" layer="51"/>   <text x="0" y="3.860" size="1.27" layer="25" align="bottom-center">&gt;NAME</text>   <text x="0" y="-1.960" size="1.27" layer="27" align="top-center">&gt;VALUE</text>-</package>+<!--adom-pin1--><polygon width="0.0500" layer="21"><vertex x="-0.6667" y="-1.5334"/><vertex x="0.6667" y="-1.5334"/><vertex x="0.0000" y="-2.8669"/></polygon></package> </packages> <symbols> <symbol name="L4940V5">
package.json+2−1
@@ -24,6 +24,7 @@     "docs/hero.png",     "docs/l4940v5-datasheet.pdf",     "viewers/symbol.html",-    "viewers/footprint.html"+    "viewers/footprint.html",+    "pads.json"   ] }\ No newline at end of file
pads.jsonadded+103
@@ -0,0 +1,103 @@+{+ "schema": "adom.pads/1",+ "slug": "l4940v5",+ "footprint": "TO-220-3_Vertical",+ "generated_from": {+  "footprint": "TO-220-3_Vertical@sha256:0c6681bb273696ad",+  "pins": "page.json:component.pins",+  "overrides": null+ },+ "pin1": {+  "pad": "1",+  "at": [+   0.0,+   0.0+  ],+  "corner": "bottom-right",+  "source": "pad-position",+  "derived_from": "TO-220-3_Vertical@sha256:0c6681bb273696ad"+ },+ "pad_count": 3,+ "paste_apertures": 0,+ "issues": [],+ "pads": [+  {+   "pad": "1",+   "kind": "thru_hole",+   "shape": "rect",+   "at": [+    0.0,+    0.0+   ],+   "rot": 0.0,+   "size": [+    1.905,+    2.0+   ],+   "layers": [],+   "thermal": false,+   "pin": "1",+   "name": "INPUT",+   "type": "power_in",+   "description": "Unregulated input supply. Absolute maximum forward VI = 30 V; recommended operating VI up to 17 V. Reverse input voltage rated to -15 V with the recommended output resistor. Bypass to GND with CI = 0.1 uF close to the pin.",+   "is_pin1": true,+   "source": {+    "geometry": "TO-220-3_Vertical.kicad_mod",+    "meaning": "page.json:component.pins",+    "correspondence": "kicad: symbol pin number == pad name"+   }+  },+  {+   "pad": "2",+   "kind": "thru_hole",+   "shape": "oval",+   "at": [+    2.54,+    0.0+   ],+   "rot": 0.0,+   "size": [+    1.905,+    2.0+   ],+   "layers": [],+   "thermal": false,+   "pin": "2",+   "name": "GROUND",+   "type": "power_in",+   "description": "Device ground and thermal reference. Electrically connected to the TO-220 mounting tab (heatsink). Carries quiescent current (typ. 5 mA at low load, ~30 mA at 1.5 A load) plus the load return current.",+   "is_pin1": false,+   "source": {+    "geometry": "TO-220-3_Vertical.kicad_mod",+    "meaning": "page.json:component.pins",+    "correspondence": "kicad: symbol pin number == pad name"+   }+  },+  {+   "pad": "3",+   "kind": "thru_hole",+   "shape": "oval",+   "at": [+    5.08,+    0.0+   ],+   "rot": 0.0,+   "size": [+    1.905,+    2.0+   ],+   "layers": [],+   "thermal": false,+   "pin": "3",+   "name": "OUTPUT",+   "type": "power_out",+   "description": "Regulated +5 V output (4.8 V to 5.2 V over 5 mA to 1.5 A load, VI = 6.5 V to 15 V). Internally current-limited (Isc typ. 2 A) and thermally protected. Requires CO >= 22 uF for stability and transient response.",+   "is_pin1": false,+   "source": {+    "geometry": "TO-220-3_Vertical.kicad_mod",+    "meaning": "page.json:component.pins",+    "correspondence": "kicad: symbol pin number == pad name"+   }+  }+ ]+}\ No newline at end of file
page.json+11
@@ -66,6 +66,17 @@     "viewers": {       "symbol": "viewers/symbol.html",       "footprint": "viewers/footprint.html"+    },+    "pin1": {+      "pad": "1",+      "at": [+        0.0,+        0.0+      ],+      "corner": "bottom-right",+      "source": "pad-position",+      "derived_from": "TO-220-3_Vertical@sha256:0c6681bb273696ad",+      "mark": "synthesised"     }   },   "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='-3.110 -3.800 11.300 5.700' style='width:100%;height:100%'><line class='ly-silk' x1='-2.570' y1='-3.260' x2='7.650' y2='-3.260' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-2.570' y1='-1.880' x2='7.650' y2='-1.880' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-2.570' y1='1.360' x2='-2.570' y2='-3.260' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='0.690' y1='-3.260' x2='0.690' y2='-1.880' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='4.390' y1='-3.260' x2='4.390' y2='-1.880' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='7.650' y1='-3.260' x2='7.650' y2='1.360' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='7.650' y1='1.360' x2='-2.570' y2='1.360' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-fab' x1='-2.460' y1='-1.880' x2='7.540' y2='-1.880' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='0.690' y1='-3.150' x2='0.690' y2='-1.880' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='4.390' y1='-3.150' x2='4.390' y2='-1.880' stroke='#f472b6' stroke-width='0.100'/><rect class='ly-courtyard' x='-2.710' y='-3.400' width='10.500' height='4.900' fill='none' stroke='#4ade80' stroke-width='0.050'/><rect class='ly-fab' x='-2.460' y='-3.150' width='10.000' height='4.400' fill='none' stroke='#f472b6' stroke-width='0.100'/><rect class='ly-copper pad' data-num='1' data-name='INPUT' x='-0.953' y='-1.000' width='1.905' height='2.000' rx='0.000' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='0.000' 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'>1</text><rect class='ly-copper pad' data-num='2' data-name='GROUND' x='1.587' y='-1.000' width='1.905' height='2.000' rx='0.000' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.540' 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='OUTPUT' x='4.128' y='-1.000' width='1.905' height='2.000' rx='0.000' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='5.080' 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'>3</text></svg></div>+<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-3.110 -3.800 11.300 5.700' style='width:100%;height:100%'><line class='ly-silk' x1='-2.570' y1='-3.260' x2='7.650' y2='-3.260' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-2.570' y1='-1.880' x2='7.650' y2='-1.880' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-2.570' y1='1.360' x2='-2.570' y2='-3.260' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='0.690' y1='-3.260' x2='0.690' y2='-1.880' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='4.390' y1='-3.260' x2='4.390' y2='-1.880' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='7.650' y1='-3.260' x2='7.650' y2='1.360' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='7.650' y1='1.360' x2='-2.570' y2='1.360' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-fab' x1='-2.460' y1='-1.880' x2='7.540' y2='-1.880' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='0.690' y1='-3.150' x2='0.690' y2='-1.880' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='4.390' y1='-3.150' x2='4.390' y2='-1.880' stroke='#f472b6' stroke-width='0.100'/><rect class='ly-courtyard' x='-2.710' y='-3.400' width='10.500' height='4.900' fill='none' stroke='#4ade80' stroke-width='0.050'/><rect class='ly-fab' x='-2.460' y='-3.150' width='10.000' height='4.400' fill='none' stroke='#f472b6' stroke-width='0.100'/><rect class='ly-copper pad' data-num='1' data-name='INPUT' x='-0.953' y='-1.000' width='1.905' height='2.000' rx='0.000' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='0.000' 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'>1</text><rect class='ly-copper pad' data-num='2' data-name='GROUND' x='1.587' y='-1.000' width='1.905' height='2.000' rx='0.000' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.540' 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='OUTPUT' x='4.128' y='-1.000' width='1.905' height='2.000' rx='0.000' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='5.080' 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'>3</text><polygon class='ly-silk adom-pin1' points='-0.667,1.533 0.667,1.533 0.000,2.867' fill='#d8b4fe' stroke='none'><title>pin 1</title></polygon></svg></div> <div id=tip></div> <script> var KIND="footprint", MPN="RAY/L4940V5", PINS=[{"desc":"","name":"INPUT","number":"1","type":""},{"desc":"","name":"GROUND","number":"2","type":""},{"desc":"","name":"OUTPUT","number":"3","type":""}];