← Commit history

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

Ray ·7f71afbf32 ·2mo ago ·parent 4172e4c
3 files changed +150−139
ad24c02.lbr+1−1
@@ -68,7 +68,7 @@   <wire x1="0.9100" y1="-1.5600" x2="-0.9100" y2="-1.5600" width="0.1200" layer="21"/>   <text x="0" y="2.212" size="1.27" layer="25" align="bottom-center">&gt;NAME</text>   <text x="0" y="-2.212" size="1.27" layer="27" align="top-center">&gt;VALUE</text>-</package>+<!--adom-pin1--><polygon width="0.0500" layer="21"><vertex x="-1.4500" y="1.5100"/><vertex x="-1.6900" y="1.8400"/><vertex x="-1.2100" y="1.8400"/></polygon></package> </packages> <symbols> <symbol name="SOT-23-5">
page.json+148−137
@@ -1,142 +1,153 @@ {- "schema_version": 1,- "type": "component",- "slug": "ad24c02",- "title": "AD24C02",- "brief": "IDCHIP EEPROM, SOT-23-5. Datasheet-verified pinout, KiCad symbol/footprint/3D.",- "version": "0.1.0",- "license": "CC-BY-SA-4.0",- "tags": [-  "component",-  "memory",-  "ad24c02"- ],- "component": {-  "mpn": "AD24C02",-  "manufacturer": "IDCHIP",-  "package": "SOT-23-5",-  "pin_count": 8,-  "category": "Memory",-  "subcategory": "EEPROM",-  "datasheet": "docs/ad24c02-datasheet.pdf",-  "parts": {-   "symbol": "ad24c02.kicad_sym",-   "footprint": "ad24c02.kicad_mod",-   "model_3d": "ad24c02.glb",-   "model_3d_step": "ad24c02.step",-   "lbr": "ad24c02.lbr"+  "schema_version": 1,+  "type": "component",+  "slug": "ad24c02",+  "title": "AD24C02",+  "brief": "IDCHIP EEPROM, SOT-23-5. Datasheet-verified pinout, KiCad symbol/footprint/3D.",+  "version": "0.1.0",+  "license": "CC-BY-SA-4.0",+  "tags": [+    "component",+    "memory",+    "ad24c02"+  ],+  "component": {+    "mpn": "AD24C02",+    "manufacturer": "IDCHIP",+    "package": "SOT-23-5",+    "pin_count": 8,+    "category": "Memory",+    "subcategory": "EEPROM",+    "datasheet": "docs/ad24c02-datasheet.pdf",+    "parts": {+      "symbol": "ad24c02.kicad_sym",+      "footprint": "ad24c02.kicad_mod",+      "model_3d": "ad24c02.glb",+      "model_3d_step": "ad24c02.step",+      "lbr": "ad24c02.lbr"+    },+    "distributor_links": {},+    "pins": [+      {+        "number": "1",+        "name": "A0",+        "type": "input",+        "description": "Device address input bit 0. Tied high or low to set bit1 of the 7-bit I2C slave address (device address high nibble is fixed 1010, followed by A2/A1/A0). Allows up to 8 AD24C02 devices on the same I2C bus."+      },+      {+        "number": "2",+        "name": "A1",+        "type": "input",+        "description": "Device address input bit 1. Selects the I2C slave address together with A0 and A2."+      },+      {+        "number": "3",+        "name": "A2",+        "type": "input",+        "description": "Device address input bit 2. Selects the I2C slave address together with A0 and A1."+      },+      {+        "number": "4",+        "name": "GND",+        "type": "power_in",+        "description": "Ground / power negative reference."+      },+      {+        "number": "5",+        "name": "SDA",+        "type": "bidirectional",+        "description": "I2C serial data line. Open-drain bidirectional data pin; requires an external pull-up resistor to VCC (typ. 10 kΩ)."+      },+      {+        "number": "6",+        "name": "SCL",+        "type": "input",+        "description": "I2C serial clock input. Drives the address/data timing; supports up to 400 kHz at 1.8V/2.5V/2.7V and 1 MHz at 5V. External pull-up to VCC required (typ. 10 kΩ)."+      },+      {+        "number": "7",+        "name": "WP",+        "type": "input",+        "description": "Hardware write-protect input. When tied high, memory-array writes are inhibited; when tied low (or left connected to GND), normal read/write operation is allowed."+      },+      {+        "number": "8",+        "name": "VCC",+        "type": "power_in",+        "description": "Positive supply voltage, 1.8V to 5.5V (absolute max 5.5V). Recommend a 1 µF decoupling capacitor close to the pin."+      }+    ],+    "provenance": {+      "extractor": "ds2sf",+      "datasheet": {+        "url": "docs/ad24c02-datasheet.pdf",+        "pages": 13,+        "sha256": "a486b51844e7c647",+        "source_tier": "lcsc"+      },+      "cad": "KiCad official (CC-BY-SA 4.0)",+      "pins": {+        "total": 8,+        "described": 8,+        "cites_pages": true,+        "refuses_to_fabricate": true+      }+    },+    "viewers": {+      "symbol": "viewers/symbol.html",+      "footprint": "viewers/footprint.html"+    },+    "pin1": {+      "pad": "1",+      "at": [+        -1.1375,+        -0.95+      ],+      "corner": "top-left",+      "source": "silk-marker",+      "derived_from": "SOT-23-5@sha256:455a3f7c3e5eb5b8",+      "mark": "drawn"+    }+  },+  "metadata": {+    "specs": {+      "Manufacturer": "Unknown",+      "Package": "SOT-23-5",+      "Category": "Memory",+      "Pins": "8"+    }   },-  "distributor_links": {},-  "pins": [-   {-    "number": "1",-    "name": "A0",-    "type": "input",-    "description": "Device address input bit 0. Tied high or low to set bit1 of the 7-bit I2C slave address (device address high nibble is fixed 1010, followed by A2/A1/A0). Allows up to 8 AD24C02 devices on the same I2C bus."-   },-   {-    "number": "2",-    "name": "A1",-    "type": "input",-    "description": "Device address input bit 1. Selects the I2C slave address together with A0 and A2."-   },-   {-    "number": "3",-    "name": "A2",-    "type": "input",-    "description": "Device address input bit 2. Selects the I2C slave address together with A0 and A1."-   },-   {-    "number": "4",-    "name": "GND",-    "type": "power_in",-    "description": "Ground / power negative reference."-   },-   {-    "number": "5",-    "name": "SDA",-    "type": "bidirectional",-    "description": "I2C serial data line. Open-drain bidirectional data pin; requires an external pull-up resistor to VCC (typ. 10 k\u03a9)."-   },-   {-    "number": "6",-    "name": "SCL",-    "type": "input",-    "description": "I2C serial clock input. Drives the address/data timing; supports up to 400 kHz at 1.8V/2.5V/2.7V and 1 MHz at 5V. External pull-up to VCC required (typ. 10 k\u03a9)."-   },-   {-    "number": "7",-    "name": "WP",-    "type": "input",-    "description": "Hardware write-protect input. When tied high, memory-array writes are inhibited; when tied low (or left connected to GND), normal read/write operation is allowed."-   },-   {-    "number": "8",-    "name": "VCC",-    "type": "power_in",-    "description": "Positive supply voltage, 1.8V to 5.5V (absolute max 5.5V). Recommend a 1 \u00b5F decoupling capacitor close to the pin."-   }+  "sections": [+    "hero",+    "viewers",+    "readme",+    "breadcrumbs",+    "info"   ],-  "provenance": {-   "extractor": "ds2sf",-   "datasheet": {-    "url": "docs/ad24c02-datasheet.pdf",-    "pages": 13,-    "sha256": "a486b51844e7c647",-    "source_tier": "lcsc"-   },-   "cad": "KiCad official (CC-BY-SA 4.0)",-   "pins": {-    "total": 8,-    "described": 8,-    "cites_pages": true,-    "refuses_to_fabricate": true-   }+  "discovery_triggers": [+    "ad24c02"+  ],+  "discovery_pitch": "AD24C02 (Unknown) component page with datasheet-verified CAD.",+  "author": {+    "name": "Ray",+    "email": "[email protected]"+  },+  "dependencies": {},+  "hero": {+    "type": "image",+    "path": "docs/hero.png"   },-  "viewers": {-   "symbol": "viewers/symbol.html",-   "footprint": "viewers/footprint.html"-  }- },- "metadata": {-  "specs": {-   "Manufacturer": "Unknown",-   "Package": "SOT-23-5",-   "Category": "Memory",-   "Pins": "8"-  }- },- "sections": [-  "hero",-  "viewers",-  "readme",-  "breadcrumbs",-  "info"- ],- "discovery_triggers": [-  "ad24c02"- ],- "discovery_pitch": "AD24C02 (Unknown) component page with datasheet-verified CAD.",- "author": {-  "name": "Ray",-  "email": "[email protected]"- },- "dependencies": {},- "hero": {-  "type": "image",-  "path": "docs/hero.png"- },- "files": [-  "page.json",-  "README.md",-  "ad24c02.kicad_sym",-  "ad24c02.kicad_mod",-  "ad24c02.glb",-  "ad24c02.step",-  "ad24c02.lbr",-  "docs/hero.png",-  "docs/ad24c02-datasheet.pdf",-  "viewers/symbol.html",-  "viewers/footprint.html"- ]+  "files": [+    "page.json",+    "README.md",+    "ad24c02.kicad_sym",+    "ad24c02.kicad_mod",+    "ad24c02.glb",+    "ad24c02.step",+    "ad24c02.lbr",+    "docs/hero.png",+    "docs/ad24c02-datasheet.pdf",+    "viewers/symbol.html",+    "viewers/footprint.html"+  ] }\ No newline at end of file
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.450 -2.100 4.900 4.200' style='width:100%;height:100%'><line class='ly-silk' x1='-0.910' y1='-1.560' x2='0.910' y2='-1.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-0.910' y1='-1.510' x2='-0.910' y2='-1.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-0.910' y1='1.560' x2='-0.910' y2='1.510' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='0.910' y1='-1.560' x2='0.910' y2='-1.510' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='0.910' y1='-0.390' x2='0.910' y2='0.390' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='0.910' y1='1.510' x2='0.910' y2='1.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='0.910' y1='1.560' x2='-0.910' y2='1.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-courtyard' x1='-2.050' y1='-1.500' x2='-1.050' y2='-1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-2.050' y1='1.500' x2='-2.050' y2='-1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-1.050' y1='-1.700' x2='1.050' y2='-1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-1.050' y1='-1.500' x2='-1.050' y2='-1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-1.050' y1='1.500' x2='-2.050' y2='1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-1.050' y1='1.700' x2='-1.050' y2='1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='1.050' y1='-1.700' x2='1.050' y2='-1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='1.050' y1='-1.500' x2='2.050' y2='-1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='1.050' y1='-0.390' x2='1.050' y2='0.390' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='1.050' y1='0.390' x2='2.050' y2='0.390' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='1.050' y1='1.500' x2='1.050' y2='1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='1.050' y1='1.700' x2='-1.050' y2='1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.050' y1='-1.500' x2='2.050' y2='-0.390' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.050' y1='-0.390' x2='1.050' y2='-0.390' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.050' y1='0.390' x2='2.050' y2='1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.050' y1='1.500' x2='1.050' y2='1.500' stroke='#4ade80' stroke-width='0.050'/><rect class='ly-copper pad' data-num='1' data-name='A0' x='-1.800' y='-1.250' width='1.325' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-1.137' 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'>1</text><rect class='ly-copper pad' data-num='2' data-name='A1' x='-1.800' y='-0.300' width='1.325' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-1.137' y='0.000' 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='A2' x='-1.800' y='0.650' width='1.325' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-1.137' 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='GND' x='0.475' y='0.650' width='1.325' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='1.137' 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><rect class='ly-copper pad' data-num='5' data-name='SDA' x='0.475' y='-1.250' width='1.325' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='1.137' 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'>5</text></svg></div>+<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-2.450 -2.100 4.900 4.200' style='width:100%;height:100%'><line class='ly-silk' x1='-0.910' y1='-1.560' x2='0.910' y2='-1.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-0.910' y1='-1.510' x2='-0.910' y2='-1.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-0.910' y1='1.560' x2='-0.910' y2='1.510' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='0.910' y1='-1.560' x2='0.910' y2='-1.510' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='0.910' y1='-0.390' x2='0.910' y2='0.390' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='0.910' y1='1.510' x2='0.910' y2='1.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='0.910' y1='1.560' x2='-0.910' y2='1.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-courtyard' x1='-2.050' y1='-1.500' x2='-1.050' y2='-1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-2.050' y1='1.500' x2='-2.050' y2='-1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-1.050' y1='-1.700' x2='1.050' y2='-1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-1.050' y1='-1.500' x2='-1.050' y2='-1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-1.050' y1='1.500' x2='-2.050' y2='1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-1.050' y1='1.700' x2='-1.050' y2='1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='1.050' y1='-1.700' x2='1.050' y2='-1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='1.050' y1='-1.500' x2='2.050' y2='-1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='1.050' y1='-0.390' x2='1.050' y2='0.390' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='1.050' y1='0.390' x2='2.050' y2='0.390' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='1.050' y1='1.500' x2='1.050' y2='1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='1.050' y1='1.700' x2='-1.050' y2='1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.050' y1='-1.500' x2='2.050' y2='-0.390' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.050' y1='-0.390' x2='1.050' y2='-0.390' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.050' y1='0.390' x2='2.050' y2='1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.050' y1='1.500' x2='1.050' y2='1.500' stroke='#4ade80' stroke-width='0.050'/><rect class='ly-copper pad' data-num='1' data-name='A0' x='-1.800' y='-1.250' width='1.325' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-1.137' 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'>1</text><rect class='ly-copper pad' data-num='2' data-name='A1' x='-1.800' y='-0.300' width='1.325' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-1.137' y='0.000' 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='A2' x='-1.800' y='0.650' width='1.325' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-1.137' 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='GND' x='0.475' y='0.650' width='1.325' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='1.137' 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><rect class='ly-copper pad' data-num='5' data-name='SDA' x='0.475' y='-1.250' width='1.325' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='1.137' 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'>5</text><polygon class='ly-silk adom-pin1' points='-1.450,-1.510 -1.690,-1.840 -1.210,-1.840' fill='#d8b4fe' stroke='none'><title>pin 1</title></polygon></svg></div> <div id=tip></div> <script> var KIND="footprint", MPN="RAY/AD24C02", PINS=[{"desc":"","name":"A0","number":"1","type":""},{"desc":"","name":"A1","number":"2","type":""},{"desc":"","name":"A2","number":"3","type":""},{"desc":"","name":"GND","number":"4","type":""},{"desc":"","name":"VCC","number":"8","type":""},{"desc":"","name":"WP","number":"7","type":""},{"desc":"","name":"SCL","number":"6","type":""},{"desc":"","name":"SDA","number":"5","type":""}];