ncarandini / KiCad-RP-Pico

A simple repository of files needed to add a 3D footprint of the Raspberry Pi Pico board to KiCad.
Other
445 stars 91 forks source link

Use project relative paths #10

Open sol opened 2 years ago

sol commented 2 years ago

This reduces the install instruction to 3 simple steps.

Add a Git submodule to your KiCad project:

git submodule add https://github.com/ncarandini/KiCad-RP-Pico

Create a file sym-lib-table with:

(sym_lib_table
  (lib (name "MCU_RaspberryPi_and_Boards")(type "KiCad")(uri "${KIPRJMOD}/KiCad-RP-Pico/RP-Pico Libraries/MCU_RaspberryPi_and_Boards.kicad_sym")(options "")(descr ""))
)

Create a file fp-lib-table with:

(fp_lib_table
  (lib (name "MCU_RaspberryPi_and_Boards")(type "KiCad")(uri "${KIPRJMOD}/KiCad-RP-Pico/RP-Pico Libraries/MCU_RaspberryPi_and_Boards.pretty")(options "")(descr ""))
)

NOTE: Instead of creating or editing these files manually you can also add them through the GUI ("Project Specific Libraries"). KiCad will then create those files for you.

sym fp

@ncarandini this results in a different workflow in which every project is self-contained. This is usually what you want if you work with others and for reproducibility. However, it's different from what you were doing so far, so I understand if this may not be suitable for merging. If so, please let me know and I'll consider to maintain my own fork.

If you think this is suitable for upstream, then let me know and I can update the documentation.