diff --git a/getting_started/img/create_component_variant.png b/getting_started/img/create_component_variant.png new file mode 100644 index 00000000..63b1fadc Binary files /dev/null and b/getting_started/img/create_component_variant.png differ diff --git a/getting_started/local_libraries.adoc b/getting_started/local_libraries.adoc index 8439da53..e1876c7e 100644 --- a/getting_started/local_libraries.adoc +++ b/getting_started/local_libraries.adoc @@ -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. ==== @@ -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] diff --git a/resources/workspace/v0.1/libraries/local/My_Library.lplib/cmp/df28a533-8503-429f-a310-29c61b5cd675/component.lp b/resources/workspace/v0.1/libraries/local/My_Library.lplib/cmp/df28a533-8503-429f-a310-29c61b5cd675/component.lp index 7eca3fae..c666ed52 100644 --- a/resources/workspace/v0.1/libraries/local/My_Library.lplib/cmp/df28a533-8503-429f-a310-29c61b5cd675/component.lp +++ b/resources/workspace/v0.1/libraries/local/My_Library.lplib/cmp/df28a533-8503-429f-a310-29c61b5cd675/component.lp @@ -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)) + ) + ) ) diff --git a/resources/workspace/v0.1/libraries/local/My_Library.lplib/sym/f4271324-8287-4001-83b6-827a3ebffff6/.librepcb-sym b/resources/workspace/v0.1/libraries/local/My_Library.lplib/sym/f4271324-8287-4001-83b6-827a3ebffff6/.librepcb-sym new file mode 100644 index 00000000..49d59571 --- /dev/null +++ b/resources/workspace/v0.1/libraries/local/My_Library.lplib/sym/f4271324-8287-4001-83b6-827a3ebffff6/.librepcb-sym @@ -0,0 +1 @@ +0.1 diff --git a/resources/workspace/v0.1/libraries/local/My_Library.lplib/sym/f4271324-8287-4001-83b6-827a3ebffff6/symbol.lp b/resources/workspace/v0.1/libraries/local/My_Library.lplib/sym/f4271324-8287-4001-83b6-827a3ebffff6/symbol.lp new file mode 100644 index 00000000..2b77e308 --- /dev/null +++ b/resources/workspace/v0.1/libraries/local/My_Library.lplib/sym/f4271324-8287-4001-83b6-827a3ebffff6/symbol.lp @@ -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) + ) +)