← Commit history

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

Ray ·ca6ab5733e ·1mo ago ·parent eff01f6
5 files changed +129−3
cj7805-3.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="CJ7805 3%">
package.json+2−1
@@ -24,6 +24,7 @@     "docs/hero.png",     "docs/cj7805-3-datasheet.pdf",     "viewers/symbol.html",-    "viewers/footprint.html"+    "viewers/footprint.html",+    "pads.json"   ] }\ No newline at end of file
pads.jsonadded+114
@@ -0,0 +1,114 @@+{+ "schema": "adom.pads/1",+ "slug": "cj7805-3",+ "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,+ "paste_apertures": 4,+ "issues": [],+ "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": "IN",+   "type": "power_in",+   "description": "Unregulated positive input voltage, 7 V to 25 V typical (35 V absolute max). Bypass with a 0.33 μF ceramic capacitor to GND placed close to the pin for stability.",+   "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": "GND",+   "type": "power_in",+   "description": "Common ground reference for input and output. On TO-252-2L this pin is also the tab (die attach paddle), providing the primary thermal path to the PCB copper.",+   "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": "OUT",+   "type": "power_out",+   "description": "Regulated +5 V output (4.75-5.25 V over temperature) with up to 1.5 A peak current. Bypass with a 0.1 μF ceramic capacitor to GND close to the pin to improve transient response.",+   "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
@@ -66,6 +66,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='IN' 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='GND' 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='OUT' 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='IN' 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='GND' 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='OUT' 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/CJ7805-3", PINS=[{"desc":"","name":"IN","number":"1","type":""},{"desc":"","name":"GND","number":"2","type":""},{"desc":"","name":"OUT","number":"3","type":""}];