### Library Installation (Bash) Source: https://context7.com/librepcb-libraries/osram.lplib/llms.txt Provides bash commands to install the OSRAM.lplib into a local LibrePCB libraries directory. This involves cloning the repository and moving it to the correct location. ```bash # Clone the library repository git clone https://github.com/LibrePCB-Libraries/OSRAM.lplib # Move to LibrePCB libraries directory mv OSRAM.lplib ~/.local/share/librepcb/libraries/local/ ``` -------------------------------- ### CI/CD Validation Workflow (GitHub Actions YAML) Source: https://context7.com/librepcb-libraries/osram.lplib/llms.txt Automates library validation for LibrePCB projects using GitHub Actions. This workflow runs on push and pull request events, utilizing the LibrePCB CLI within a Docker container to perform checks. ```yaml name: CI on: [push, pull_request] jobs: check: runs-on: ubuntu-22.04 container: image: librepcb/librepcb-cli:1.0.0-rc1 options: --entrypoint /bin/bash steps: - uses: actions/checkout@v1 - run: librepcb-cli open-library --all --strict --check --minify-step . ``` -------------------------------- ### Device Definition - Green LED (LibrePCB Lisp) Source: https://context7.com/librepcb-libraries/osram.lplib/llms.txt Defines an OSRAM LG R971-KN-1 green LED component, specifying its wavelength and linking to the same physical package as the red LED variant. ```lisp (librepcb_device 7b73f4ec-2798-4254-a07a-26844e606d5b (name "OSRAM LG R971-KN-1") (description "Diffused Green LED (579 nm).\n\nDigikey: 475-1410-1-ND") (keywords "osram,led,green,diffused") (author "Danilo B.") (version "0.2") (created 2019-01-22T22:52:46Z) (deprecated false) (category 70421345-ae1d-4fed-aa60-e7619524b97f) (component 2b24b18d-bd95-4fb4-8fe6-bce1d020ead4) (package 06786894-7be9-4204-bb00-f2f56c2d94db) (pad 82554e47-4d0a-4093-823b-ec23c56d39f1 (signal f1467b5c-cc7d-44b4-8076-d729f35b3a6a)) (pad 87f52793-38a4-49a2-82e6-8699f6ee455b (signal 7b023430-b68f-403a-80b8-c7deb12e7a0c)) (part "LG R971-KN-1" (manufacturer "OSRAM")) ) ``` -------------------------------- ### Define LibrePCB Library Metadata Source: https://context7.com/librepcb-libraries/osram.lplib/llms.txt This Lisp-based S-expression defines the core metadata for the OSRAM LibrePCB library. It specifies the library's name, description, version, author, and dependencies. This file is essential for LibrePCB to recognize and manage the library. ```lisp (librepcb_library 489cb650-bff3-4f0e-8b40-6569ce326cb8 (name "OSRAM") (description "Optoelectronics and -semiconductors (unofficial).") (keywords "osram,opto,semiconductors") (author "LibrePCB") (version "0.2") (created 2019-01-22T20:58:02Z) (deprecated false) (url "https://github.com/LibrePCB-Libraries/OSRAM.lplib") (dependency a9ddf0c6-9b1c-4730-b300-01b4f192ad40) (manufacturer "OSRAM") ) ``` -------------------------------- ### Device Definition - Red LED (LibrePCB Lisp) Source: https://context7.com/librepcb-libraries/osram.lplib/llms.txt Defines an OSRAM LS R976-NR-1 red LED component. This links the electrical characteristics and part number to the physical package. ```lisp (librepcb_device 094db302-7bff-46b9-8317-eadaea05e406 (name "OSRAM LS R976-NR-1") (description "Diffused Red LED (633 nm).\n\nDigikey: 475-1278-1-ND") (keywords "osram,led,red,diffused") (author "Danilo B.") (version "0.2") (created 2019-01-22T21:00:32Z) (deprecated false) (category 70421345-ae1d-4fed-aa60-e7619524b97f) (component 2b24b18d-bd95-4fb4-8fe6-bce1d020ead4) (package 06786894-7be9-4204-bb00-f2f56c2d94db) (pad 82554e47-4d0a-4093-823b-ec23c56d39f1 (signal f1467b5c-cc7d-44b4-8076-d729f35b3a6a)) (pad 87f52793-38a4-49a2-82e6-8699f6ee455b (signal 7b023430-b68f-403a-80b8-c7deb12e7a0c)) (part "LS R976-NR-1" (manufacturer "OSRAM")) ) ``` -------------------------------- ### Define OSRAM CHIPLED 0805 Diffused Package Source: https://context7.com/librepcb-libraries/osram.lplib/llms.txt This Lisp-based S-expression defines the physical footprint for the OSRAM CHIPLED 0805 Diffused component. It includes pad definitions, dimensions, and graphics for the top layer, courtyard, and silkscreen, essential for PCB layout. ```lisp (librepcb_package 06786894-7be9-4204-bb00-f2f56c2d94db (name "OSRAM_CHIPLED0805_DIFFUSED") (description "OSRAM Chip LED 0805. Diffused lens.\n\nLength: 2.0mm\nWidth: 1.25mm") (keywords "2012,0805,led,chip,chipled,osram") (author "Danilo B.") (version "0.5") (created 2019-01-22T21:11:37Z) (deprecated false) (category 0764a19f-0b33-4927-906a-f4d6c522841d) (assembly_type smt) (pad 87f52793-38a4-49a2-82e6-8699f6ee455b (name "C")) (pad 82554e47-4d0a-4093-823b-ec23c56d39f1 (name "A")) (footprint f494b260-5654-4b01-9634-b20a7c381876 (name "default") (description "") (3d_position 0.0 0.0 0.0) (3d_rotation 0.0 0.0 0.0) (pad 82554e47-4d0a-4093-823b-ec23c56d39f1 (side top) (shape roundrect) (position 1.05 0.0) (rotation 0.0) (size 1.2 1.2) (radius 0.0) (stop_mask auto) (solder_paste auto) (clearance 0.0) (function standard) (package_pad 82554e47-4d0a-4093-823b-ec23c56d39f1) ) (pad 87f52793-38a4-49a2-82e6-8699f6ee455b (side top) (shape roundrect) (position -1.05 0.0) (rotation 0.0) (size 1.2 1.2) (radius 0.0) (stop_mask auto) (solder_paste auto) (clearance 0.0) (function standard) (package_pad 87f52793-38a4-49a2-82e6-8699f6ee455b) ) (polygon fed31bce-aa5c-49b9-88a0-263cde6385c0 (layer top_package_outlines) (width 0.0) (fill false) (grab_area false) (vertex (position -0.9 0.625) (angle 0.0)) (vertex (position 0.9 0.625) (angle 0.0)) (vertex (position 0.9 -0.625) (angle 0.0)) (vertex (position -0.9 -0.625) (angle 0.0)) ) (polygon 09f8d46d-7392-484c-ac26-d492fe46fd37 (layer top_courtyard) (width 0.0) (fill false) (grab_area false) (vertex (position 1.85 0.825) (angle 0.0)) (vertex (position -1.85 0.825) (angle 0.0)) (vertex (position -1.85 -0.825) (angle 0.0)) (vertex (position 1.85 -0.825) (angle 0.0)) ) (circle 02ce75e1-6e39-496d-8753-b294ac101412 (layer top_legend) (width 0.0) (fill true) (grab_area false) (diameter 0.3) (position -1.925 -0.875) ) ) ) ``` -------------------------------- ### Device Definition - Yellow LED (LibrePCB Lisp) Source: https://context7.com/librepcb-libraries/osram.lplib/llms.txt Defines an OSRAM LY R976-PS-36 yellow LED component, suitable for status indicators and displays, using the same package as other LED variants. ```lisp (librepcb_device 984532c8-9d78-4976-a843-207d08b543e3 (name "OSRAM LY R976-PS-36") (description "Diffused Yellow LED (588 nm).\n\nDigikey: 475-2560-1-ND") (keywords "osram,led,yellow,diffused") (author "Danilo B.") (version "0.2") (created 2019-01-22T22:51:11Z) (deprecated false) (category 70421345-ae1d-4fed-aa60-e7619524b97f) (component 2b24b18d-bd95-4fb4-8fe6-bce1d020ead4) (package 06786894-7be9-4204-bb00-f2f56c2d94db) (pad 82554e47-4d0a-4093-823b-ec23c56d39f1 (signal f1467b5c-cc7d-44b4-8076-d729f35b3a6a)) (pad 87f52793-38a4-49a2-82e6-8699f6ee455b (signal 7b023430-b68f-403a-80b8-c7deb12e7a0c)) (part "LY R976-PS-36" (manufacturer "OSRAM")) ) ``` -------------------------------- ### Package Definition - CHIPLED 0603 Diffused (LibrePCB Lisp) Source: https://context7.com/librepcb-libraries/osram.lplib/llms.txt Defines the physical footprint and properties for an OSRAM CHIPLED 0603 Diffused package. This definition includes dimensions, pad configurations, and outline polygons for PCB layout. ```lisp (librepcb_package 6f7fe346-55e6-43ed-8368-6fe890cdb466 (name "OSRAM_CHIPLED0603_DIFFUSED") (description "OSRAM Chip LED 0603. Diffused lens.\n\nLength: 1.6mm\nWidth: 0.8mm") (keywords "1608,0603,led,chip,chipled,osram") (author "Danilo B.") (version "0.5") (created 2019-01-22T21:11:37Z) (deprecated false) (category 0764a19f-0b33-4927-906a-f4d6c522841d) (assembly_type smt) (pad 7f35eb9a-53e2-4822-8ae2-afa46f38f205 (name "C")) (pad 2fa25ef5-b224-4aa6-b49b-b9333e4f6981 (name "A")) (footprint fd2fbbb1-b0ca-4e01-854d-f0869c01ac13 (name "default") (description "") (3d_position 0.0 0.0 0.0) (3d_rotation 0.0 0.0 0.0) (pad 2fa25ef5-b224-4aa6-b49b-b9333e4f6981 (side top) (shape roundrect) (position 0.75 0.0) (rotation 0.0) (size 0.8 0.8) (radius 0.0) (stop_mask auto) (solder_paste auto) (clearance 0.0) (function standard) (package_pad 2fa25ef5-b224-4aa6-b49b-b9333e4f6981) ) (pad 7f35eb9a-53e2-4822-8ae2-afa46f38f205 (side top) (shape roundrect) (position -0.75 0.0) (rotation 0.0) (size 0.8 0.8) (radius 0.0) (stop_mask auto) (solder_paste auto) (clearance 0.0) (function standard) (package_pad 7f35eb9a-53e2-4822-8ae2-afa46f38f205) ) (polygon 2c11b44d-4172-4f77-bc33-d35d8fbd4d14 (layer top_package_outlines) (width 0.0) (fill false) (grab_area false) (vertex (position -0.8 0.4) (angle 0.0)) (vertex (position 0.8 0.4) (angle 0.0)) (vertex (position 0.8 -0.4) (angle 0.0)) (vertex (position -0.8 -0.4) (angle 0.0)) ) (polygon 2dd1a8dc-1e0a-4745-989e-aead351839a3 (layer top_courtyard) (width 0.0) (fill false) (grab_area false) (vertex (position 1.35 0.6) (angle 0.0)) (vertex (position -1.35 0.6) (angle 0.0)) (vertex (position -1.35 -0.6) (angle 0.0)) (vertex (position 1.35 -0.6) (angle 0.0)) ) ) ) ``` -------------------------------- ### Validate OSRAM Library with LibrePCB CLI Source: https://context7.com/librepcb-libraries/osram.lplib/llms.txt This command validates the integrity and structure of the OSRAM LibrePCB library using the LibrePCB command-line interface. It checks for S-expression syntax, UUID uniqueness, required fields, cross-references, and footprint geometry. The expected output on success indicates successful opening, checking, and saving of the library. ```bash # Validate library structure and contents librepcb-cli open-library --all --strict --check --minify-step . # Expected output on success: # Open library './'... # Check library... # Save library './'... # SUCCESS # Common validation checks: # - S-expression syntax correctness # - UUID uniqueness and validity # - Required fields presence # - Cross-reference integrity between devices and packages # - Footprint geometry validity ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.