← Commit history

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

Ray ·04d0857a24 ·1mo ago ·parent 04d2789
5 files changed +118−3
gx18b20s.lbr+1−1
@@ -109,7 +109,7 @@   <wire x1="3.3320" y1="-1.3778" x2="3.0236" y2="-1.7536" width="0.1000" layer="51"/>   <text x="0" y="1.350" size="1.27" layer="25" align="bottom-center">&gt;NAME</text>   <text x="0" y="-2.450" size="1.27" layer="27" align="top-center">&gt;VALUE</text>-</package>+<!--adom-pin1--><polygon width="0.0500" layer="21"><vertex x="-0.3675" y="-1.0440"/><vertex x="0.3675" y="-1.0440"/><vertex x="0.0000" y="-1.7790"/></polygon></package> </packages> <symbols> <symbol name="GX18B20S">
package.json+2−1
@@ -24,6 +24,7 @@     "docs/hero.png",     "docs/gx18b20s-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": "gx18b20s",+ "footprint": "TO-92_Inline",+ "generated_from": {+  "footprint": "TO-92_Inline@sha256:19731cf8b8c297aa",+  "pins": "page.json:component.pins",+  "overrides": null+ },+ "pin1": {+  "pad": "1",+  "at": [+   0.0,+   0.0+  ],+  "corner": "bottom-right",+  "source": "pad-position",+  "derived_from": "TO-92_Inline@sha256:19731cf8b8c297aa"+ },+ "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.05,+    1.5+   ],+   "layers": [],+   "thermal": false,+   "pin": "1",+   "name": "GND",+   "type": "power_in",+   "description": "Ground reference for the device. Must be tied to system ground; when the device operates in parasite-power mode the VDD pin must also be tied to GND.",+   "is_pin1": true,+   "source": {+    "geometry": "TO-92_Inline.kicad_mod",+    "meaning": "page.json:component.pins",+    "correspondence": "kicad: symbol pin number == pad name"+   }+  },+  {+   "pad": "2",+   "kind": "thru_hole",+   "shape": "oval",+   "at": [+    1.27,+    0.0+   ],+   "rot": 0.0,+   "size": [+    1.05,+    1.5+   ],+   "layers": [],+   "thermal": false,+   "pin": "2",+   "name": "DQ",+   "type": "bidirectional",+   "description": "1-Wire data input/output. Open-drain bidirectional data line; requires an external ~5 kΩ (typ. shown as 1 kΩ in strong-pullup examples) pull-up to VDD. Also supplies power to the device when used in parasite-power mode (charging the internal CPP capacitor while the bus is high).",+   "is_pin1": false,+   "source": {+    "geometry": "TO-92_Inline.kicad_mod",+    "meaning": "page.json:component.pins",+    "correspondence": "kicad: symbol pin number == pad name"+   }+  },+  {+   "pad": "3",+   "kind": "thru_hole",+   "shape": "oval",+   "at": [+    2.54,+    0.0+   ],+   "rot": 0.0,+   "size": [+    1.05,+    1.5+   ],+   "layers": [],+   "thermal": false,+   "pin": "3",+   "name": "VDD",+   "type": "power_in",+   "description": "Optional external supply pin, 2.5 V to 5.5 V. Provides local power to the device; must be grounded when operating in parasite-power mode (device is powered from the DQ line instead).",+   "is_pin1": false,+   "source": {+    "geometry": "TO-92_Inline.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-92_Inline@sha256:19731cf8b8c297aa",+      "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='-1.860 -3.130 6.260 6.130' style='width:100%;height:100%'><line class='ly-silk' x1='-0.530' y1='1.850' x2='3.070' y2='1.850' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-courtyard' x1='-1.460' y1='-2.730' x2='-1.460' y2='2.010' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-1.460' y1='-2.730' x2='4.000' y2='-2.730' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='4.000' y1='2.010' x2='-1.460' y2='2.010' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='4.000' y1='2.010' x2='4.000' y2='-2.730' stroke='#4ade80' stroke-width='0.050'/><line class='ly-fab' x1='-0.500' y1='1.750' x2='3.000' y2='1.750' stroke='#f472b6' stroke-width='0.100'/><path class='ly-silk' d='M-0.568 1.838 A2.600 2.600 0 0 1 1.270 -2.600' fill='none' stroke='#d8b4fe' stroke-width='0.120'/><path class='ly-silk' d='M1.270 -2.600 A2.600 2.600 0 0 1 3.108 1.838' fill='none' stroke='#d8b4fe' stroke-width='0.120'/><path class='ly-fab' d='M-0.484 1.754 A2.480 2.480 0 0 1 1.270 -2.480' fill='none' stroke='#f472b6' stroke-width='0.100'/><path class='ly-fab' d='M1.270 -2.480 A2.480 2.480 0 0 1 3.024 1.754' fill='none' stroke='#f472b6' stroke-width='0.100'/><rect class='ly-copper pad' data-num='1' data-name='GND' x='-0.525' y='-0.750' width='1.050' height='1.500' 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='0.630' transform='rotate(-90 0.000 0.000)' 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='DQ' x='0.745' y='-0.750' width='1.050' height='1.500' rx='0.000' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='1.270' y='0.000' font-size='0.630' transform='rotate(-90 1.270 0.000)' 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='VDD' x='2.015' y='-0.750' width='1.050' height='1.500' 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='0.630' transform='rotate(-90 2.540 0.000)' 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='-1.860 -3.130 6.260 6.130' style='width:100%;height:100%'><line class='ly-silk' x1='-0.530' y1='1.850' x2='3.070' y2='1.850' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-courtyard' x1='-1.460' y1='-2.730' x2='-1.460' y2='2.010' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-1.460' y1='-2.730' x2='4.000' y2='-2.730' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='4.000' y1='2.010' x2='-1.460' y2='2.010' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='4.000' y1='2.010' x2='4.000' y2='-2.730' stroke='#4ade80' stroke-width='0.050'/><line class='ly-fab' x1='-0.500' y1='1.750' x2='3.000' y2='1.750' stroke='#f472b6' stroke-width='0.100'/><path class='ly-silk' d='M-0.568 1.838 A2.600 2.600 0 0 1 1.270 -2.600' fill='none' stroke='#d8b4fe' stroke-width='0.120'/><path class='ly-silk' d='M1.270 -2.600 A2.600 2.600 0 0 1 3.108 1.838' fill='none' stroke='#d8b4fe' stroke-width='0.120'/><path class='ly-fab' d='M-0.484 1.754 A2.480 2.480 0 0 1 1.270 -2.480' fill='none' stroke='#f472b6' stroke-width='0.100'/><path class='ly-fab' d='M1.270 -2.480 A2.480 2.480 0 0 1 3.024 1.754' fill='none' stroke='#f472b6' stroke-width='0.100'/><rect class='ly-copper pad' data-num='1' data-name='GND' x='-0.525' y='-0.750' width='1.050' height='1.500' 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='0.630' transform='rotate(-90 0.000 0.000)' 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='DQ' x='0.745' y='-0.750' width='1.050' height='1.500' rx='0.000' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='1.270' y='0.000' font-size='0.630' transform='rotate(-90 1.270 0.000)' 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='VDD' x='2.015' y='-0.750' width='1.050' height='1.500' 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='0.630' transform='rotate(-90 2.540 0.000)' 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.367,1.044 0.367,1.044 0.000,1.779' fill='#d8b4fe' stroke='none'><title>pin 1</title></polygon></svg></div> <div id=tip></div> <script> var KIND="footprint", MPN="RAY/GX18B20S", PINS=[{"desc":"","name":"GND","number":"1","type":""},{"desc":"","name":"DQ","number":"2","type":""},{"desc":"","name":"VDD","number":"3","type":""}];