Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added example of component symbol variant #40

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added getting_started/img/create_component_variant.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions getting_started/local_libraries.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ For details about how symbols should be designed, please take a look at our
- Pins should be grouped by functionality and must be placed on the 2.54mm
grid.
- There should be text elements for `{{NAME}}` and `{{VALUE}}`.
- Gates offered in multiunit packages should also include a symbol without
power pins.
====


Expand Down Expand Up @@ -192,6 +194,12 @@ as soon as you understand the our library concepts, you will be able to easily
create much more powerful library elements. We're sure you will love the
flexibility of the library concept ;)
====
Because this component comes in packages with 1,2 or 4 OpAmps you should also
create a symbol with no power pins. You can then create a symbol variant using
that symbol with a generic power block.

image:img/create_component_variant.png[alt="Component Variant"]


.Following are the most important rules to create reusable Components:
[TIP]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,21 @@
(pin ef37b3b5-d1c4-4760-b6a9-5804f0948701 (signal 8d110243-3051-421f-8f97-3e36fcff2413) (text signal))
)
)
(variant 9f6075a0-a606-41b9-b1f2-92e386ec859b (norm "")
(name "split power")
(description "")
(gate a6cac445-24aa-4c2c-91d1-52946188a808
(symbol f4271324-8287-4001-83b6-827a3ebffff6)
(position 0.0 0.0) (rotation 0.0) (required true) (suffix "")
(pin 35132143-6624-441c-b47e-511395cc6f16 (signal 8d110243-3051-421f-8f97-3e36fcff2413) (text signal))
(pin c16facc2-7fd5-4ca3-97d6-b24b4b705a09 (signal cdb4a86e-89b0-4504-a0ba-36986d531ca6) (text signal))
(pin e6acd64a-7417-4982-9622-796be0adc77b (signal 7f8efce2-adb8-4078-b94b-b6da6a24d30d) (text signal))
)
(gate de077b56-f0e0-411b-b047-cae2ca56bc3b
(symbol 23fae272-31f0-4b0a-b7d3-62ae744035c4)
(position 0.0 20.0) (rotation 0.0) (required true) (suffix "")
(pin 1d1aefbf-3d23-4b49-8a4d-bcdd79f2acd9 (signal 452571fc-e2e3-4c23-8cc4-7e0f87513e57) (text signal))
(pin 31f1f05f-b019-4044-9e0c-c1ddc7adf5ed (signal fa6df2e3-cbdb-4a7e-9e2e-dde9965dbeb3) (text signal))
)
)
)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
(librepcb_symbol f4271324-8287-4001-83b6-827a3ebffff6
(name "Single OpAmp No Power")
(description "")
(keywords "")
(author "John Eaton")
(version "0.1")
(created 2019-10-09T02:38:51Z)
(deprecated false)
(category 1204bf54-dbbb-4056-a771-5b13990ddd77)
(pin c16facc2-7fd5-4ca3-97d6-b24b4b705a09 (name "IN+")
(position -7.62 2.54) (rotation 0.0) (length 2.54)
)
(pin e6acd64a-7417-4982-9622-796be0adc77b (name "IN-")
(position -7.62 -2.54) (rotation 0.0) (length 2.54)
)
(pin 35132143-6624-441c-b47e-511395cc6f16 (name "OUT")
(position 7.62 0.0) (rotation 180.0) (length 2.54)
)
(polygon 0eba9a8f-0f50-45ee-96c9-20fd5e131488 (layer sym_outlines)
(width 0.25) (fill false) (grab_area true)
(vertex (position -5.08 5.08) (angle 0.0))
(vertex (position 5.08 0.0) (angle 0.0))
(vertex (position -5.08 -5.08) (angle 0.0))
(vertex (position -5.08 5.08) (angle 0.0))
)
(text 21bc4b86-21d8-424f-bf46-f828bc1fb5bf (layer sym_names) (value "{{NAME}}")
(align left bottom) (height 3.0) (position 2.54 2.54) (rotation 0.0)
)
(text 065071d4-aa29-4c76-a528-7669d5a11035 (layer sym_values) (value "{{VALUE}}")
(align left top) (height 2.5) (position 2.54 -2.54) (rotation 0.0)
)
)