### LibrePCB Package: Slide Switch (SMT) Source: https://context7.com/librepcb-libraries/ck.lplib/llms.txt Defines a Surface Mount Technology (SMT) slide switch package. This is an excerpt showing basic package information and pad definitions. ```librepcb ; File: pkg/420f1a95-2058-4f30-bf54-3d06eb49b2e3/package.lp (excerpt) (librepcb_package 420f1a95-2058-4f30-bf54-3d06eb49b2e3 (name "CK_JS202011SCQN") (description "Slide switch DPDT, surface mount, 300mA, 6V.") (keywords "slide,switch,dpdt") (author "Danilo Bargen") (version "0.2") (created 2019-07-31T20:11:44Z) (deprecated false) (assembly_type smt) (grid_interval 2.54) (min_copper_clearance 0.2) ; Pads 1–7 for DPDT connections (pad 9dc3bdde-2818-4f92-904e-748e2e5b8113 (name "1")) (pad 463f0037-c13d-4cb4-a0f6-0293a389876f (name "2")) ; ... ) ``` -------------------------------- ### SMT Package Definition for CK_SDA05H1SB Source: https://context7.com/librepcb-libraries/ck.lplib/llms.txt Defines the PCB footprint for the CK_SDA05H1SB 5-position DIP slide switch. Includes physical dimensions, pad definitions, and SMT pad configurations. ```librepcb ; File: pkg/27fcf04b-1be8-4999-8e84-ec74b03dc421/package.lp (librepcb_package 27fcf04b-1be8-4999-8e84-ec74b03dc421 (name "CK_SDA05H1SB") (description "5x DIP switch from C&K.\n\nBody Size: 7.49 x 14.68 mm\nLead Span: 9.30 mm\nLead Y-Pitch: 2.54 mm\nActuator Height: 1.00 mm\n\nGenerated with librepcb-parts-generator (generate_dip_switches.py)") (keywords "dip,slide,switch,c&k") (author "U. Bruhin") (version "0.1") (created 2025-11-11T15:12:42Z) (deprecated false) (generated_by "") (category 194951ec-03dd-412a-9828-70c40bbdd22d) (category c0f16db0-f0db-4121-ab12-b4570ff79738) (assembly_type smt) (grid_interval 2.54) (min_copper_clearance 0.2) ; Pads: 10 pads total (5 switch positions × 2 contacts) (pad a6d9d437-a6e0-4630-89c3-82321db6fcce (name "1")) (pad 0ec54288-1064-4022-8689-11e5db4f41f7 (name "2")) ; ... pads 3–10 follow same pattern (3d_model bda59d62-82e3-454e-a4a7-548781f0d33e (name "CK_SDA05H1SB")) (footprint afcab703-eae5-4b55-9189-790769942439 (name "default") (description "") (3d_position 0.0 0.0 0.0) (3d_rotation 0.0 0.0 0.0) (3d_model bda59d62-82e3-454e-a4a7-548781f0d33e) ; SMT pad: side=top, shape=roundrect, 2.15×1.5 mm, radius=0.5 (pad 99e5ad5d-cce1-477e-a7dc-66f413235ecd (side top) (shape roundrect) (position -4.125 11.43) (rotation 0.0) (size 2.15 1.5) (radius 0.5) (stop_mask auto) (solder_paste auto) (clearance 0.0) (function standard) (package_pad a6d9d437-a6e0-4630-89c3-82321db6fcce) ) ; ... courtyard, documentation silkscreen, and legend polygons follow ) ) ``` -------------------------------- ### LibrePCB Package: Tactile Switch (THT) Source: https://context7.com/librepcb-libraries/ck.lplib/llms.txt Defines a Through-Hole Technology (THT) tactile switch package. Includes pad definitions, 3D model linkage, and footprint details. ```librepcb ; File: pkg/ff387fb2-372b-4078-971b-7f665b6c56b5/package.lp (librepcb_package ff387fb2-372b-4078-971b-7f665b6c56b5 (name "CK_PTS645SJx732") (description "Tactile switch from C&K.\n\nBody Size: 6.00 x 6.00 mm\nPitch: 6.50 x 4.50 mm\nActuator Height: 7.30 mm\n\nGenerated with librepcb-parts-generator (generate_tactile_switches.py)") (keywords "push,press,button,switch,tactile") (author "U. Bruhin") (version "0.1") (created 2025-04-15T21:39:13Z) (deprecated false) (assembly_type tht) (grid_interval 2.54) (min_copper_clearance 0.2) ; 4 THT pads (pad 5d116813-2fe9-4aa5-9e69-c72e711183bb (name "1")) (pad 888c0063-4b39-4198-a828-2197039ee219 (name "2")) (pad ffd1b905-4df8-4dc0-abad-9fb586939313 (name "3")) (pad 56336199-aa76-470d-aee7-02df41922546 (name "4")) (3d_model cdeb1d07-fe03-45a8-8c57-d3c0cd678fba (name "CK_PTS645SJx732")) (footprint 7cf01cbf-dcbd-47ba-9b69-1b02e5d52cdc (name "default") ; THT drill pad: roundrect 1.7×1.7 mm, hole diameter 1.0 mm (pad 29ae90d0-b3dd-4bb6-8ed9-b13375cd5350 (side top) (shape roundrect) (position -3.25 2.25) (rotation 0.0) (size 1.7 1.7) (radius 1.0) (stop_mask auto) (solder_paste off) (clearance 0.0) (function standard) (package_pad 5d116813-2fe9-4aa5-9e69-c72e711183bb) (hole 29ae90d0-b3dd-4bb6-8ed9-b13375cd5350 (diameter 1.0) (vertex (position 0.0 0.0) (angle 0.0)) ) ) ; ... remaining pads and silkscreen polygons follow ) ) ``` -------------------------------- ### Reference 3D STEP Model in LibrePCB Package Source: https://context7.com/librepcb-libraries/ck.lplib/llms.txt Declares a 3D model within a LibrePCB package footprint, linking a UUID to a STEP file for visualization. The actual STEP file should be located in the corresponding package directory. ```librepcb ; Reference inside package.lp footprint: (3d_model bda59d62-82e3-454e-a4a7-548781f0d33e (name "CK_SDA10H1SB")) ; Corresponding STEP file on disk: ; pkg/015b73c6-e5ec-4003-814a-5a84bd86c707/bda59d62-82e3-454e-a4a7-548781f0d33e.step ``` -------------------------------- ### CI Validation Workflow for LibrePCB Libraries Source: https://context7.com/librepcb-libraries/ck.lplib/llms.txt GitHub Actions workflow to automatically validate LibrePCB library files on push and pull requests. It uses the `librepcb-cli` Docker image to run checks for well-formedness, STEP file minification, and design rule compliance. ```yaml # File: .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 - run: librepcb-cli open-library --all --strict --check --minify-step . # --all : check all elements (packages, devices, categories) # --strict : treat warnings as errors # --check : run design-rule checks # --minify-step : verify STEP files are stored in minified form ``` -------------------------------- ### Library Metadata Definition Source: https://context7.com/librepcb-libraries/ck.lplib/llms.txt Defines the identity, version, author, and dependencies of the LibrePCB library. This file is parsed by LibrePCB upon loading. ```librepcb (librepcb_library 1b4c6aca-3c96-4e19-b384-fdb1bdeeb4fd (name "C&K") (description "Switch technology and high reliability connector products (unofficial).") (keywords "") (author "LibrePCB") (version "0.2.2") (created 2019-07-31T20:01:44Z) (deprecated false) (url "https://github.com/LibrePCB-Libraries/CK.lplib") (dependency a9ddf0c6-9b1c-4730-b300-01b4f192ad40) (manufacturer "C&K") ) ``` -------------------------------- ### Define C&K Tactile Switch Device in LibrePCB Source: https://context7.com/librepcb-libraries/ck.lplib/llms.txt Defines a specific tactile switch component, including its physical attributes, part numbers with varying operating forces, and associated footprints and pads. Ensure correct UUIDs are used for components and packages. ```librepcb ; File: dev/d6ec7056-e2f0-447b-aa27-4d78fbe61748/device.lp (librepcb_device d6ec7056-e2f0-447b-aa27-4d78fbe61748 (name "C&K PTS645SJx732") (description "Tactile switch from C&K.\n\nBody Size: 6.00 x 6.00 mm\nPitch: 6.50 x 4.50 mm\nActuator Height: 7.30 mm") (keywords "push,press,button,switch,tactile") (author "U. Bruhin") (version "0.1") (created 2025-04-15T21:39:13Z) (deprecated false) (resource "Datasheet PTS645" (mediatype "application/pdf") (url "https://www.ckswitches.com/media/1471/pts645.pdf") ) (component 6eedad0b-5b41-4233-9b7b-8be1ee8527e0) (package ff387ae2b-372b-4078-971b-7f665b6c56b5) ; CK_PTS645SJx732 THT footprint (pad 56336199-aa76-470d-aee7-02df41922546 (optional false) (signal 4c215f30-3492-4a32-94d3-7f3541afb7db) ) (pad 5d116813-2fe9-4aa5-9e69-c72e711183bb (optional false) (signal 33616b61-b981-452a-a672-e564bfabf6b1) ) (pad 888c0063-4b39-4198-a828-2197039ee219 (optional false) (signal 33616b61-b981-452a-a672-e564bfabf6b1) ; pins 2 & 3 share same signal (normally-open pair) ) (pad ffd1b905-4df8-4dc0-abad-9fb586939313 (optional false) (signal 4c215f30-3492-4a32-94d3-7f3541afb7db) ) ; Orderable part numbers by operating force (part "PTS645SJK432LFS" (manufacturer "C&K") (attribute "HEIGHT" (type string) (unit none) (value "7.3mm")) (attribute "FORCE" (type string) (unit none) (value "260gf")) ) (part "PTS645SJL732LFS" (manufacturer "C&K") (attribute "HEIGHT" (type string) (unit none) (value "7.3mm")) (attribute "FORCE" (type string) (unit none) (value "130gf")) ) (part "PTS645SJM732LFS" (manufacturer "C&K") (attribute "HEIGHT" (type string) (unit none) (value "7.3mm")) (attribute "FORCE" (type string) (unit none) (value "160gf")) ) (part "PTS645SJN732LFS" (manufacturer "C&K") (attribute "HEIGHT" (type string) (unit none) (value "7.3mm")) (attribute "FORCE" (type string) (unit none) (value "100gf")) ) (part "PTS645SJH732LFS" (manufacturer "C&K") (attribute "HEIGHT" (type string) (unit none) (value "7.3mm")) (attribute "FORCE" (type string) (unit none) (value "200gf")) ) (part "PTS645SJP732LFS" (manufacturer "C&K") (attribute "HEIGHT" (type string) (unit none) (value "7.3mm")) (attribute "FORCE" (type string) (unit none) (value "320gf")) ) (part "PTS645SJR732LFS" (manufacturer "C&K") (attribute "HEIGHT" (type string) (unit none) (value "7.3mm")) (attribute "FORCE" (type string) (unit none) (value "360gf")) ) ) ``` -------------------------------- ### Package Category Definition Source: https://context7.com/librepcb-libraries/ck.lplib/llms.txt Groups related PCB packages under a named hierarchy. This entry defines the 'C&K' package category and links it to a parent category from the base library. ```librepcb ; File: pkgcat/33d975c5-2732-47bf-ab82-735d0d836067/package_category.lp (librepcb_package_category 33d975c5-2732-47bf-ab82-735d0d836067 (name "C&K") (description "Packages by C&K switches") (keywords "ck,c&k") (author "Danilo Bargen") (version "0.1") (created 2019-07-31T20:08:29Z) (deprecated false) (parent 194951ec-03dd-412a-9828-70c40bbdd22d) ; parent category UUID from base library ) ``` -------------------------------- ### LibrePCB Device: DIP Slide Switch Source: https://context7.com/librepcb-libraries/ck.lplib/llms.txt Defines a device for a DIP slide switch, linking a schematic component to a package footprint and specifying orderable part numbers with attributes like packaging and features. ```librepcb ; File: dev/05944ca1-4193-4f48-9216-9abe055815d9/device.lp (librepcb_device 05944ca1-4193-4f48-9216-9abe055815d9 (name "C&K SDA05H1SB") (description "5x DIP switch from C&K.\n\nBody Size: 7.49 x 14.68 mm\nLead Span: 9.30 mm\nLead Y-Pitch: 2.54 mm\nActuator Height: 1.00 mm") (keywords "dip,slide,switch,c&k") (author "U. Bruhin") (version "0.1") (created 2025-11-11T15:12:42Z) (deprecated false) (category e29f0cb3-ef6d-4203-b854-d75150cbae0b) (resource "Datasheet SDA Series" (mediatype "application/pdf") (url "https://www.ckswitches.com/media/1327/sda.pdf") ) ; Bind to the abstract schematic component and the CK_SDA05H1SB footprint (component d197082e-78fc-4b68-a745-348834e9d995) (package 27fcf04b-1be8-4999-8e84-ec74b03dc421) ; Map package pads → schematic signals (pad 01089fc0-096a-4f61-995f-6213ac4bb6bd (optional false) (signal e51977d1-61a8-484f-81c6-72102663cee6) ) (pad 335169fd-089f-4733-8759-8fffc035f260 (optional false) (signal 627052ec-d1d2-424e-a616-28da86bbf56b) ) ; ... 8 more pad→signal mappings ; Orderable part numbers with packaging variants (part "SDA05H1SB" (manufacturer "C&K") (attribute "FEATURES" (type string) (unit none) (value "Sealed")) (attribute "PACKAGING" (type string) (unit none) (value "Tube")) ) (part "SDA05H1SBR" (manufacturer "C&K") (attribute "FEATURES" (type string) (unit none) (value "Sealed")) (attribute "PACKAGING" (type string) (unit none) (value "T&R")) ) (part "SDA05H1SBD" (manufacturer "C&K") (attribute "PACKAGING" (type string) (unit none) (value "Tube")) ) (part "SDA05H1SBDR" (manufacturer "C&K") (attribute "PACKAGING" (type string) (unit none) (value "T&R")) ) ) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.