← Commit history

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

Ray ·2628188f84 ·1mo ago ·parent 1e3210a
5 files changed +166−3
package.json+2−1
@@ -24,6 +24,7 @@     "docs/hero.png",     "docs/stm811sw16f-datasheet.pdf",     "viewers/symbol.html",-    "viewers/footprint.html"+    "viewers/footprint.html",+    "pads.json"   ] }\ No newline at end of file
pads.jsonadded+151
@@ -0,0 +1,151 @@+{+ "schema": "adom.pads/1",+ "slug": "stm811sw16f",+ "footprint": "SOT-143",+ "generated_from": {+  "footprint": "SOT-143@sha256:80e8edd31fe81e67",+  "pins": "page.json:component.pins",+  "overrides": null+ },+ "pin1": {+  "pad": "1",+  "at": [+   -1.0,+   -0.75+  ],+  "corner": "top-left",+  "source": "silk-marker",+  "derived_from": "SOT-143@sha256:80e8edd31fe81e67"+ },+ "pad_count": 4,+ "symbol_pins": [+  "1",+  "2",+  "3",+  "4"+ ],+ "paste_apertures": 0,+ "issues": [],+ "pads": [+  {+   "pad": "1",+   "kind": "smd",+   "shape": "roundrect",+   "at": [+    -1.0,+    -0.75+   ],+   "rot": 0.0,+   "size": [+    0.7,+    1.0+   ],+   "layers": [+    "F.Cu",+    "F.Mask",+    "F.Paste"+   ],+   "thermal": false,+   "pin": "1",+   "name": "VSS",+   "type": "power_in",+   "description": "Ground reference for the supervisor. Tie to the system ground plane.",+   "is_pin1": true,+   "source": {+    "geometry": "SOT-143.kicad_mod",+    "meaning": "page.json:component.pins",+    "correspondence": "kicad: symbol pin number == pad name"+   }+  },+  {+   "pad": "2",+   "kind": "smd",+   "shape": "roundrect",+   "at": [+    -1.0,+    0.95+   ],+   "rot": 0.0,+   "size": [+    0.7,+    0.6+   ],+   "layers": [+    "F.Cu",+    "F.Mask",+    "F.Paste"+   ],+   "thermal": false,+   "pin": "2",+   "name": "RST",+   "type": "output",+   "description": "Active-low reset output (push-pull). Asserted (driven low) whenever VCC is below the reset threshold or MR is held low; remains asserted for at least trec (~140 ms) after the fault clears. Guaranteed valid down to VCC = 1 V; both sources and sinks current.",+   "is_pin1": false,+   "source": {+    "geometry": "SOT-143.kicad_mod",+    "meaning": "page.json:component.pins",+    "correspondence": "kicad: symbol pin number == pad name"+   }+  },+  {+   "pad": "3",+   "kind": "smd",+   "shape": "roundrect",+   "at": [+    1.0,+    0.95+   ],+   "rot": 0.0,+   "size": [+    0.7,+    0.6+   ],+   "layers": [+    "F.Cu",+    "F.Mask",+    "F.Paste"+   ],+   "thermal": false,+   "pin": "3",+   "name": "MR",+   "type": "input",+   "description": "Manual reset input, active low. A logic low asserts RST and keeps it asserted for trec after MR returns high. Internally pulled up to VCC via a 20 kΩ resistor, so it may be left open if unused; a normally-open push-button to GND provides a manual reset. Optional 0.1 µF cap from MR to GND for noise immunity.",+   "is_pin1": false,+   "source": {+    "geometry": "SOT-143.kicad_mod",+    "meaning": "page.json:component.pins",+    "correspondence": "kicad: symbol pin number == pad name"+   }+  },+  {+   "pad": "4",+   "kind": "smd",+   "shape": "roundrect",+   "at": [+    1.0,+    -0.95+   ],+   "rot": 0.0,+   "size": [+    0.7,+    0.6+   ],+   "layers": [+    "F.Cu",+    "F.Mask",+    "F.Paste"+   ],+   "thermal": false,+   "pin": "4",+   "name": "VCC",+   "type": "power_in",+   "description": "Monitored supply voltage input (typ. 3.0/3.3/5 V depending on threshold variant). A 0.1 µF bypass capacitor to VSS mounted close to this pin is recommended for transient immunity.",+   "is_pin1": false,+   "source": {+    "geometry": "SOT-143.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": [+        -1.0,+        -0.75+      ],+      "corner": "top-left",+      "source": "silk-marker",+      "derived_from": "SOT-143@sha256:80e8edd31fe81e67",+      "mark": "drawn"     }   },   "metadata": {
stm811sw16f.lbr+1−1
@@ -67,7 +67,7 @@   <wire x1="0.6500" y1="-1.4500" x2="-0.6500" y2="-1.4500" width="0.1000" layer="51"/>   <text x="0" y="2.160" size="1.27" layer="25" align="bottom-center">&gt;NAME</text>   <text x="0" y="-2.160" size="1.27" layer="27" align="top-center">&gt;VALUE</text>-</package>+<!--adom-pin1--><polygon width="0.0500" layer="21"><vertex x="-1.0000" y="1.5100"/><vertex x="-1.2400" y="1.8400"/><vertex x="-0.7600" y="1.8400"/><vertex x="-1.0000" y="1.5100"/></polygon></package> </packages> <symbols> <symbol name="STM811SW16F">
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='-2.000 -2.100 4.000 4.200' style='width:100%;height:100%'><line class='ly-silk' x1='-0.650' y1='1.560' x2='0.650' y2='1.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='0.650' y1='-1.560' x2='-0.620' y2='-1.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-courtyard' x1='-1.600' y1='1.700' x2='-1.600' y2='-1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-1.600' y1='1.700' x2='1.600' y2='1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='1.600' y1='-1.700' x2='-1.600' y2='-1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='1.600' y1='-1.700' x2='1.600' y2='1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-fab' x1='-0.650' y1='-0.950' x2='-0.150' y2='-1.450' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-0.650' y1='1.450' x2='-0.650' y2='-0.950' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-0.150' y1='-1.450' x2='0.650' y2='-1.450' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='0.650' y1='-1.450' x2='0.650' y2='1.450' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='0.650' y1='1.450' x2='-0.650' y2='1.450' stroke='#f472b6' stroke-width='0.100'/><rect class='ly-copper pad' data-num='1' data-name='VSS' x='-1.350' y='-1.250' width='0.700' height='1.000' rx='0.175' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-1.000' y='-0.750' font-size='0.420' transform='rotate(-90 -1.000 -0.750)' 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='RST' x='-1.350' y='0.650' width='0.700' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-1.000' y='0.950' font-size='0.360' 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='MR' x='0.650' y='0.650' width='0.700' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='1.000' y='0.950' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>3</text><rect class='ly-copper pad' data-num='4' data-name='VCC' x='0.650' y='-1.250' width='0.700' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='1.000' y='-0.950' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>4</text></svg></div>+<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-2.000 -2.100 4.000 4.200' style='width:100%;height:100%'><line class='ly-silk' x1='-0.650' y1='1.560' x2='0.650' y2='1.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='0.650' y1='-1.560' x2='-0.620' y2='-1.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-courtyard' x1='-1.600' y1='1.700' x2='-1.600' y2='-1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-1.600' y1='1.700' x2='1.600' y2='1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='1.600' y1='-1.700' x2='-1.600' y2='-1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='1.600' y1='-1.700' x2='1.600' y2='1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-fab' x1='-0.650' y1='-0.950' x2='-0.150' y2='-1.450' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-0.650' y1='1.450' x2='-0.650' y2='-0.950' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-0.150' y1='-1.450' x2='0.650' y2='-1.450' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='0.650' y1='-1.450' x2='0.650' y2='1.450' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='0.650' y1='1.450' x2='-0.650' y2='1.450' stroke='#f472b6' stroke-width='0.100'/><rect class='ly-copper pad' data-num='1' data-name='VSS' x='-1.350' y='-1.250' width='0.700' height='1.000' rx='0.175' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-1.000' y='-0.750' font-size='0.420' transform='rotate(-90 -1.000 -0.750)' 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='RST' x='-1.350' y='0.650' width='0.700' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-1.000' y='0.950' font-size='0.360' 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='MR' x='0.650' y='0.650' width='0.700' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='1.000' y='0.950' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>3</text><rect class='ly-copper pad' data-num='4' data-name='VCC' x='0.650' y='-1.250' width='0.700' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='1.000' y='-0.950' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>4</text><polygon class='ly-silk adom-pin1' points='-1.000,-1.510 -1.240,-1.840 -0.760,-1.840 -1.000,-1.510' fill='#d8b4fe' stroke='none'><title>pin 1</title></polygon></svg></div> <div id=tip></div> <script> var KIND="footprint", MPN="RAY/STM811SW16F", PINS=[{"desc":"","name":"VSS","number":"1","type":""},{"desc":"","name":"RST","number":"2","type":""},{"desc":"","name":"VCC","number":"4","type":""},{"desc":"","name":"MR","number":"3","type":""}];