### Package Category Definition (librepcb_package_category) Source: https://context7.com/librepcb-libraries/keystone.lplib/llms.txt Groups packages within the LibrePCB library browser and is referenced by individual packages. This example defines a 'Keystone' category under the base library's 'Battery Holders'. ```librepcb ; pkgcat/1c4e8cee-9c15-4dc4-997c-3bee75a0c1c4/package_category.lp (librepcb_package_category 1c4e8cee-9c15-4dc4-997c-3bee75a0c1c4 (name "Keystone") (description "Packages by Keystone Electronics") (keywords "keystone") (author "Danilo Bargen") (version "0.1") (created 2019-06-30T19:18:37Z) (deprecated false) (parent 194951ec-03dd-412a-9828-70c40bbdd22d) ; Battery Holders category in base library ) ``` -------------------------------- ### CI Validation Workflow for LibrePCB Libraries Source: https://context7.com/librepcb-libraries/keystone.lplib/llms.txt This GitHub Actions workflow uses `librepcb-cli` to validate all elements in a library. It enforces strict ERC/DRC rules and checks for errors, reporting non-zero exit codes for any detected issues. ```yaml # .github/workflows/main.yml name: CI on: [push, pull_request] jobs: check: runs-on: ubuntu-24.04 container: image: librepcb/librepcb-cli:2.0.0-rc1 options: --entrypoint /bin/bash steps: - uses: actions/checkout@v1 # Open every element in the library, run strict checks, and minify - run: librepcb-cli open-library --all --strict --check --minify-step . # Exit code 0 = all checks passed; non-zero = library errors detected ``` -------------------------------- ### Library Metadata Declaration (librepcb_library) Source: https://context7.com/librepcb-libraries/keystone.lplib/llms.txt Defines the identity, version, author, and dependencies of the LibrePCB library. This file is automatically consumed by LibrePCB when the library is added to a workspace. ```librepcb ; library.lp — root library descriptor (librepcb_library 0b886a93-bf1e-4ea6-83af-e309ffa46fae (name "Keystone Electronics") (description "Interconnect components and more (unofficial).") (keywords "keystone,") (author "LibrePCB") (version "0.2") (created 2019-06-30T11:26:11Z) (deprecated false) (url "https://github.com/LibrePCB-Libraries/Keystone.lplib") (dependency a9ddf0c6-9b1c-4730-b300-01b4f192ad40) ; LibrePCB base library (manufacturer "Keystone Electronics") ) ``` -------------------------------- ### Package Footprint Definition (librepcb_package) Source: https://context7.com/librepcb-libraries/keystone.lplib/llms.txt Defines the physical footprint for a component, including pad geometry, silkscreen, and documentation layers. This snippet shows the 'KEYSTONE_54' battery clip package with multiple footprint variants for different cell sizes. ```librepcb ; pkg/018bc30d-e733-4d6f-9228-361ace5a079a/package.lp (abbreviated) (librepcb_package 018bc30d-e733-4d6f-9228-361ace5a079a (name "KEYSTONE_54") (description "Battery clips for cylindrical battery cells Ø17–19 mm (18650, 18500, 17650, 17500).") (keywords "keystone,battery,holder,cell,clip,18650,18500,17650,17500") (author "Danilo Bargen") (version "0.2.1") (created 2019-06-30T11:29:48Z) (deprecated false) (category 1c4e8cee-9c15-4dc4-997c-3bee75a0c1c4) (assembly_type tht) (grid_interval 2.54) (min_copper_clearance 0.2) ; Six pads: +1/+2/+3 (positive terminal) and -1/-2/-3 (negative terminal) (pad f559035b-... (name "+2")) (pad 51105f56-... (name "+1")) (pad bb35ac1b-... (name "+3")) (pad 420fe84e-... (name "-1")) (pad 21237388-... (name "-2")) (pad 4d16e1cf-... (name "-3")) ; Footprint variant: 18650 65mm unprotected cell (footprint e5c24189-f554-4ee3-9a12-fb2176a773da (name "18650 65mm (unprotected)") ; +1 pad — 1.83 mm drill, roundrect 3×3 mm (pad 51105f56-... (side top) (shape roundrect) (position 0.0 31.62) (rotation 0.0) (size 3.0 3.0) (radius 1.0) (stop_mask auto) (solder_paste off) (clearance 0.0) (function standard) (hole 51105f56-... (diameter 1.83) (vertex (position 0.0 0.0) (angle 0.0)) ) ) ; … (five additional pads symmetrically placed) ; Courtyard, documentation, and silkscreen polygons included ) ; Additional footprint variants: 18650 68mm (protected), 18500 50mm, ; 17650 65mm, 17500 50mm ) ``` -------------------------------- ### Define Keystone 54 Battery Clip Device Source: https://context7.com/librepcb-libraries/keystone.lplib/llms.txt Defines a schematic component for the Keystone 54 battery clip, mapping its three positive and three negative pads to the appropriate signals. This is used for cylindrical battery cells. ```librepcb ; dev/c7cdf995-cae3-4f18-8eeb-9c4e24079128/device.lp (librepcb_device c7cdf995-cae3-4f18-8eeb-9c4e24079128 (name "Keystone 54 Battery Clips") (description "Battery clips for cylindrical battery cells Ø17–19 mm (18650, 18500, 17650, 17500).") (keywords "keystone,battery,holder,cell,clip,18650,18500,17650,17500") (author "Danilo Bargen") (version "0.2") (created 2019-06-30T13:29:50Z) (deprecated false) (category b76b4ce6-...) ; Battery Holders component category (component 1ee29522-...) ; Generic 2-terminal battery component (package 018bc30d-...) ; KEYSTONE_54 package ; Pad-to-signal mapping — three pads per polarity (pad 51105f56-... (optional false) (signal 365d2045-...)) ; +1 → VCC signal (pad f559035b-... (optional false) (signal 365d2045-...)) ; +2 → VCC signal (pad bb35ac1b-... (optional false) (signal 365d2045-...)) ; +3 → VCC signal (pad 420fe84e-... (optional false) (signal b3c5e539-...)) ; -1 → GND signal (pad 21237388-... (optional false) (signal b3c5e539-...)) ; -2 → GND signal (pad 4d16e1cf-... (optional false) (signal b3c5e539-...)) ; -3 → GND signal (part "54" (manufacturer "Keystone Electronics")) ) ``` -------------------------------- ### Define KEYSTONE_2468 AAA Battery Holder Footprint Source: https://context7.com/librepcb-libraries/keystone.lplib/llms.txt Defines the footprint for the Keystone 2468 open AAA battery holder. Includes two variants: one with mechanical mounting holes and one without. Both feature THT pads for battery terminals and polarity markers on the documentation layer. ```librepcb ; pkg/dd9a3433-a992-41f4-b8d1-086095a9b54e/package.lp (abbreviated) (librepcb_package dd9a3433-a992-41f4-b8d1-086095a9b54e (name "KEYSTONE_2468") (description "Battery holder (open) for 2 cells AAA with through-hole pins.") (keywords "keystone,battery,holder,cell,aaa") (author "Jessy") (version "0.2.1") (created 2019-07-29T20:54:43Z) (deprecated false) (category 1c4e8cee-9c15-4dc4-997c-3bee75a0c1c4) (assembly_type tht) (grid_interval 2.54) (min_copper_clearance 0.2) (pad 61856d8f-... (name "+")) (pad d6432d99-... (name "-")) ; Variant 1: With Holes — includes two 3.45 mm mounting holes (footprint d3c1068d-37ff-475b-86e2-2cc2ec425c7a (name "With Holes") (pad d6432d99-... (side top) (shape roundrect) (position -6.35 20.32) (rotation 90.0) (size 3.6 1.8) (radius 1.0) (stop_mask auto) (solder_paste off) (clearance 0.0) (function standard) (hole d6432d99-... (diameter 1.02) (vertex (position 0.0 0.0) (angle 0.0)) ) ) (pad 61856d8f-... (side top) (shape roundrect) (position 6.35 20.32) (rotation 90.0) (size 3.6 1.8) (radius 1.0) (stop_mask auto) (solder_paste off) (clearance 0.0) (function standard) (hole 61856d8f-... (diameter 1.02) (vertex (position 0.0 0.0) (angle 0.0)) ) ) ; Mounting holes (hole 505c9695-... (diameter 3.45) (stop_mask auto) (vertex (position 2.35 14.985) (angle 0.0)) ) (hole a871eb31-... (diameter 3.45) (stop_mask auto) (vertex (position -2.35 -14.985) (angle 0.0)) ) ) ; Variant 2: Without Holes — identical pads, no mounting holes (footprint 49510f62-6bc1-4f5c-96e3-22da1b110766 (name "Without Holes") ; … identical pad definitions, no hole entries ) ) ``` -------------------------------- ### Define KEYSTONE_1065 Coin-Cell Holder Footprint Source: https://context7.com/librepcb-libraries/keystone.lplib/llms.txt Defines the footprint for the Keystone 1065 vertical through-hole coin-cell holder. Includes THT pads for battery terminals and mounting holes. ```librepcb ; pkg/356cef37-4471-4e78-b232-171ef6e25c6f/package.lp (abbreviated) (librepcb_package 356cef37-4471-4e78-b232-171ef6e25c6f (name "KEYSTONE_1065") (description "Vertical 20mm coin-cell holder for BR2012, CR2016, DL2020, CL2025, CR2032.") (keywords "keystone,1065,battery,cell,holder,br2012,cr2016,dl2020,cl2025,cr2032") (author "U. Bruhin") (version "0.3.1") (created 2019-10-23T19:12:18Z) (deprecated false) (category 1c4e8cee-9c15-4dc4-997c-3bee75a0c1c4) (assembly_type tht) (grid_interval 2.54) (min_copper_clearance 0.2) (pad b989c4ed-... (name "+")) (pad 51db8207-... (name "-")) (footprint 5f3c369a-419e-4b14-abbf-97f0fee07da1 (name "default") ; + pad: 1.5 mm drill, position (-13.1, 0), roundrect 2.4×2.4 mm (pad b989c4ed-... (side top) (shape roundrect) (position -13.1 0.0) (rotation 90.0) (size 2.4 2.4) (radius 1.0) (stop_mask auto) (solder_paste off) (clearance 0.0) (function standard) (hole b989c4ed-... (diameter 1.5) (vertex (position 0.0 0.0) (angle 0.0)) ) ) ; - pad: 1.5 mm drill, position (0, 3.0) (pad 51db8207-... (side top) (shape roundrect) (position 0.0 3.0) (rotation 0.0) (size 2.4 2.4) (radius 1.0) (stop_mask auto) (solder_paste off) (clearance 0.0) (function standard) (hole 51db8207-... (diameter 1.5) (vertex (position 0.0 0.0) (angle 0.0)) ) ) ; Two 3.5 mm mounting holes at (-7.24, 0) and (8.0, 0) (hole ed5aa2c5-... (diameter 3.5) (stop_mask auto) (vertex (position -7.24 0.0) (angle 0.0)) ) (hole 8ee3e188-... (diameter 3.5) (stop_mask auto) (vertex (position 8.0 0.0) (angle 0.0)) ) ) ) ``` -------------------------------- ### Define Keystone 1065 Coin-Cell Holder Device Source: https://context7.com/librepcb-libraries/keystone.lplib/llms.txt Defines the Keystone 1065 coin-cell holder, linking a generic battery component to its package and mapping the two pads to positive and negative signals. This is for coin-cell batteries. ```librepcb ; dev/072327d8-89b0-46d6-a72f-d374fe3a9509/device.lp (librepcb_device 072327d8-89b0-46d6-a72f-d374fe3a9509 (name "Keystone 1065") (description "Vertical 20mm battery cell holder for BR2012, CR2016, DL2020, CL2025, CR2032.\nDatasheet: http://keyelco.com/userAssets/file/M65p5.pdf") (keywords "keystone,1065,battery,cell,holder,br2012,cr2016,dl2020,cl2025,cr2032") (author "U. Bruhin") (version "0.3") (created 2019-10-23T19:30:19Z) (deprecated false) (category b76b4ce6-...) (component 1ee29522-...) ; Generic 2-terminal battery component (package 356cef37-...) ; KEYSTONE_1065 package (pad 51db8207-... (optional false) (signal b3c5e539-...)) ; - → GND (pad b989c4ed-... (optional false) (signal 365d2045-...)) ; + → VCC (part "1065" (manufacturer "Keystone Electronics")) ) ``` -------------------------------- ### Define Keystone 2468 Dual-AAA Battery Holder Device Source: https://context7.com/librepcb-libraries/keystone.lplib/llms.txt Defines the Keystone 2468 dual-AAA battery holder, associating the schematic component with its package and mapping the two pads to the positive and negative rails. This is for two AAA cells. ```librepcb ; dev/a81d55a8-9acc-4272-b853-b4d78fae5b49/device.lp (librepcb_device a81d55a8-9acc-4272-b853-b4d78fae5b49 (name "Keystone 2468 Battery Holder 2xAAA") (description "Battery holder (open) for 2 cells AAA with through-hole pins.") (keywords "keystone,battery,holder,cell,aaa") (author "Jessy") (version "0.2") (created 2019-07-29T21:18:38Z) (deprecated false) (category b76b4ce6-...) (component b0cfc007-...) ; 2xAAA battery component from base library (package dd9a3433-...) ; KEYSTONE_2468 package (pad 61856d8f-... (optional false) (signal f43946cc-...)) ; + → positive rail (pad d6432d99-... (optional false) (signal 24070a70-...)) ; - → negative rail (part "2468" (manufacturer "Keystone Electronics")) ) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.