### Integrate Raspberry Pi Library into LibrePCB Project (Bash) Source: https://context7.com/librepcb-libraries/raspberrypi.lplib/llms.txt Instructions for adding the Raspberry Pi library to a LibrePCB project using the command line or the Library Manager. This involves cloning the repository or providing a URL, after which the devices become available in the LibrePCB component browser. Verify installation by listing the library's device directories. ```bash # Clone library into LibrePCB user libraries directory cd ~/.local/share/librepcb/libraries/local/ git clone https://github.com/LibrePCB-Libraries/RaspberryPi.lplib # Or use LibrePCB Library Manager: # 1. Open LibrePCB # 2. Tools → Library Manager # 3. Add Library → From URL # 4. Enter: https://github.com/LibrePCB-Libraries/RaspberryPi.lplib # 5. Library UUID: 9e175007-1f47-4562-94a3-a0f8310f3379 # Verify library installation ls ~/.local/share/librepcb/libraries/local/RaspberryPi.lplib/dev/ # Expected output: 5 device directories (Pi 2, 3, 4, Zero, Pico) # In LibrePCB schematic editor: # 1. Press Insert or click "Add Component" # 2. Search: "Raspberry Pi" # 3. Available devices: # - Raspberry Pi 2, GPIO 40-Pin # - Raspberry Pi 3, GPIO 40-Pin # - Raspberry Pi 4, GPIO 40-Pin # - Raspberry Pi Zero, GPIO 40-Pin # - Raspberry Pi Pico (SMD) ``` -------------------------------- ### Create Custom Raspberry Pi Device (LibrePCB Lisp) Source: https://context7.com/librepcb-libraries/raspberrypi.lplib/llms.txt Defines a custom device in LibrePCB using Lisp syntax. It references existing component and package UUIDs and maps signals to pads, allowing for the creation of new Raspberry Pi variants or custom board definitions. Ensure correct UUIDs for components, packages, and signals. ```lisp # Custom device example for Raspberry Pi 5 (librepcb_device (name "Raspberry Pi 5, GPIO 40-Pin") (description "Raspberry Pi 5 with standard 40-pin GPIO header") (keywords "raspberry, pi, pi5") (author "Your Name") (version "0.1.0") (created 2025-01-15T10:00:00Z) (deprecated false) (category e96d0dda-3100-4e68-8c33-e2a5bc80428b) # Reuse existing GPIO component (component 6c8d2de2-3ae5-4d27-8511-5c621ebc3dee) # Reuse existing package or reference a new one (package 35fbc3ba-0d65-4924-bf7b-b373a714b99d) # Map signals to pads following standard pinout (pad 9277aae9-065f-4343-8a93-0c12589adb0d (signal 227161ed-f537-4584-bff2-a84daf8280a8)) # ... (continue mapping for all 40 pins) (approved no_parts) ) ``` -------------------------------- ### Raspberry Pi 40-Pin GPIO Header Package Definition Source: https://context7.com/librepcb-libraries/raspberrypi.lplib/llms.txt Defines the physical layout and properties of the Raspberry Pi 40-Pin GPIO header package. This includes the placement, shape, and size of each of the 40 pads, as well as silkscreen and courtyard outlines. ```lisp (librepcb_package 35fbc3ba-0d65-4924-bf7b-b373a714b99d (name "RASPBERRY_GPIO_40P") (description "Raspberry Pi 40-Pin GPIO header") (keywords "raspberry, pi") (author "Marc Wittwer") (version "0.2.1") (created 2019-06-11T13:43:46Z) (category 3738a28e-611f-459a-9d04-5be22bfcd0e8) (assembly_type tht) # Pad definitions (numbered 1-40) (pad 9277aae9-065f-4343-8a93-0c12589adb0d (name "1")) (pad 07d4636d-9143-4369-8396-47599c640441 (name "3")) (pad 0bceb88c-73a4-43f6-8100-5e99273cfca7 (name "4")) # ... (pads 5-38 omitted for brevity) (pad d9c5fae9-70f4-45a9-9602-d782f65ab419 (name "40")) # Footprint with physical pad layout (footprint 9627a13a-a40f-4975-a3c4-dbf1c33b9e6a (name "default") (3d_position 0.0 0.0 0.0) (3d_rotation 0.0 0.0 0.0) # Pin 1 (3V3) - Square pad at top left (pad 9277aae9-065f-4343-8a93-0c12589adb0d (side top) (shape roundrect) (position -1.27 24.13) (rotation 0.0) (size 2.1 1.5) (radius 0.0) (stop_mask auto) (solder_paste off) (clearance 0.0) (function standard) (package_pad 9277aae9-065f-4343-8a93-0c12589adb0d) (hole 9277aae9-065f-4343-8a93-0c12589adb0d (diameter 1.0) (vertex (position 0.0 0.0) (angle 0.0)) ) ) # Pin 2 (5V) - Round pad at top right (pad 6a3dae1f-b422-47a6-8143-c68ffbb05024 (side top) (shape roundrect) (position 1.27 24.13) (rotation 0.0) (size 2.1 1.5) (radius 1.0) (stop_mask auto) (solder_paste off) (clearance 0.0) (function standard) (package_pad 6a3dae1f-b422-47a6-8143-c68ffbb05024) (hole 6a3dae1f-b422-47a6-8143-c68ffbb05024 (diameter 1.0) (vertex (position 0.0 0.0) (angle 0.0)) ) ) # Silkscreen outline (polygon e2276335-b9b5-406a-9818-3e43df65deb4 (layer top_legend) (width 0.2) (fill false) (grab_area true) (vertex (position -2.6 25.6) (angle 0.0)) (vertex (position -2.6 -25.4) (angle 0.0)) (vertex (position 2.6 -25.4) (angle 0.0)) (vertex (position 2.6 25.6) (angle 0.0)) (vertex (position -2.6 25.6) (angle 0.0)) ) # Courtyard boundary (polygon 51b20cb7-d1c0-44c3-8b3e-9c5498a27157 (layer top_courtyard) (width 0.0) (fill false) (grab_area false) (vertex (position 2.9 25.9) (angle 0.0)) (vertex (position -2.9 25.9) (angle 0.0)) (vertex (position -2.9 -25.9) (angle 0.0)) (vertex (position 2.9 -25.9) (angle 0.0)) ) ) ) ``` -------------------------------- ### Library Configuration (S-expression) Source: https://context7.com/librepcb-libraries/raspberrypi.lplib/llms.txt Defines the root configuration for the LibrePCB library, including its name, description, author, version, and dependencies. This file uses a S-expression format specific to LibrePCB. ```lisp (librepcb_library 9e175007-1f47-4562-94a3-a0f8310f3379 (name "Raspberry Pi") (description "Raspberry Pi models (unofficial).") (keywords "raspberry, pi") (author "LibrePCB") (version "0.2.1") (created 2019-06-13T08:07:45Z) (deprecated false) (url "https://github.com/LibrePCB-Libraries/RaspberryPi.lplib") (dependency a9ddf0c6-9b1c-4730-b300-01b4f192ad40) (manufacturer "Raspberry Pi") ) ``` -------------------------------- ### Raspberry Pi 40-Pin GPIO Pinout Reference Source: https://context7.com/librepcb-libraries/raspberrypi.lplib/llms.txt A detailed mapping of signals to the 40-pin GPIO header found on Raspberry Pi models 2, 3, 4, and Zero. It includes power pins, ground connections, and lists alternate functions for I2C, SPI, and UART. This serves as a quick reference for connecting peripherals. ```text # 40-Pin GPIO Pinout (Pin Number: Signal Name) Left Column (Odd): Right Column (Even): 1: 3V3 2: 5V 3: GPIO02/SDA 4: 5V 5: GPIO03/SCL 6: GND 7: GPIO04 8: GPIO14/TX 9: GND 10: GPIO15/RX 11: GPIO17 12: GPIO18 13: GPIO27 14: GND 15: GPIO22 16: GPIO23 17: 3V3 18: GPIO24 19: GPIO10/MOSI 20: GND 21: GPIO09/MISO 22: GPIO25 23: GPIO11/SCLK 24: GPIO08/CE0 25: GND 26: GPIO07/CE1 27: ID_SD 28: ID_SC 29: GPIO05 30: GND 31: GPIO06 32: GPIO12 33: GPIO13 34: GND 35: GPIO19 36: GPIO16 37: GPIO26 38: GPIO20 39: GND 40: GPIO21 # Alternate Function Summary: # I2C: GPIO2 (SDA), GPIO3 (SCL) # SPI: GPIO7 (CE1), GPIO8 (CE0), GPIO9 (MISO), GPIO10 (MOSI), GPIO11 (SCLK) # UART: GPIO14 (TX), GPIO15 (RX) # ID EEPROM: ID_SD, ID_SC (for HAT identification) ``` -------------------------------- ### Define Raspberry Pi Pico Device (LibrePCB Lisp) Source: https://context7.com/librepcb-libraries/raspberrypi.lplib/llms.txt Illustrates the structure for defining the Raspberry Pi Pico as a device in LibrePCB using Lisp syntax. It specifies the component and package UUIDs and outlines the main pin groups, including GPIO, power, debug, and test points. This definition is for SMD mounting on a carrier PCB. ```lisp # Pico device structure (simplified) (librepcb_device 4954b7e5-0798-42bf-b256-a807a1cf1f2a (name "Raspberry Pi Pico (SMD)") (description "Raspberry Pi Pico microcontroller module in SMD package") (component a3c283c7-58fd-4b2f-8e9a-a31d218f09ae) (package a035055f-7cd4-4289-a573-9e7c6de10e6b) # GPIO pins GP0-GP28 # 3V3_OUT, 3V3_EN, VSYS, VBUS # GND connections # Test points: TP1-TP6 # Debug: SWCLK, SWDIO # RUN (reset) pin ) # Pico pinout highlights: # - 26 GPIO pins (GP0-GP28, some gaps) ``` -------------------------------- ### Raspberry Pi GPIO 40-Pin Device Definition Source: https://context7.com/librepcb-libraries/raspberrypi.lplib/llms.txt Defines the Raspberry Pi 2 device by linking the 40-Pin GPIO component to its physical footprint and mapping each component signal to a specific pad on the footprint. This establishes the complete electrical and physical interface for the component. ```lisp (librepcb_device a2314c72-b9dc-4155-9a34-25c5703835b9 (name "Raspberry Pi 2, GPIO 40-Pin") (description "Raspberry Pi 2, GPIO 40-Pin") (keywords "raspberry, pi") (author "Danilo Bargen") (version "0.1.1") (created 2019-06-26T14:32:55Z) (category e96d0dda-3100-4e68-8c33-e2a5bc80428b) # Component reference (electrical definition) (component 6c8d2de2-3ae5-4d27-8511-5c621ebc3dee) # Package reference (physical footprint) (package 35fbc3ba-0d65-4924-bf7b-b373a714b99d) # Signal-to-pad mapping # Maps component signal UUIDs to package pad UUIDs (pad 9277aae9-065f-4343-8a93-0c12589adb0d (signal 227161ed-f537-4584-bff2-a84daf8280a8)) # Pin 1: 3V3 (pad 6a3dae1f-b422-47a6-8143-c68ffbb05024 (signal 6c5dc858-f7a1-4b6f-9520-30b70fe35c56)) # Pin 2: 5V (pad 07d4636d-9143-4369-8396-47599c640441 (signal 13e3a387-c076-407f-a442-04c00cc885a6)) # Pin 3: GPIO02/SDA (pad 0bceb88c-73a4-43f6-8100-5e99273cfca7 (signal 6c5dc858-f7a1-4b6f-9520-30b70fe35c56)) # Pin 4: 5V (pad 2c79f9d6-0338-42da-9d9c-413ceb9cff25 (signal 49e15a61-ef91-4ddc-b207-bd5e3e95d4be)) # Pin 5: GPIO03/SCL (pad ea140ae6-e646-4f0a-a59a-42f4ee7547d2 (signal 30e58e5d-9329-4a70-bf27-d7e776758d62)) # Pin 6: GND (pad f43b3d98-f041-4c5c-ac31-66b2b8b6174d (signal dc3a238b-282b-4895-9e3e-66101b009413)) # Pin 7: GPIO04 (pad 6cc2aaaf-80e9-49b4-8168-e63243af2769 (signal 71f6ea0d-f5aa-4267-b211-84eaf3a40ecc)) # Pin 8: GPIO14/TX (pad 5577a6dc-5a47-4eea-b9ea-ebd9320888c4 (signal 30e58e5d-9329-4a70-bf27-d7e776758d62)) # Pin 9: GND (pad 38107c5e-6c05-4174-a8e6-5bfec53068c7 (signal fe7a6468-da03-4a96-91c0-bde1f76672a9)) # Pin 10: GPIO15/RX # ... (pins 11-40 follow same pattern) (approved no_parts) ) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.