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

Add sym/cmp for analog 2-axis joysticks #131

Merged
merged 2 commits into from
Oct 25, 2023
Merged
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
1 change: 1 addition & 0 deletions cmp/292afbaf-b5a1-4801-852e-de3c87ce9a72/.librepcb-cmp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
38 changes: 38 additions & 0 deletions cmp/292afbaf-b5a1-4801-852e-de3c87ce9a72/component.lp
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
(librepcb_component 292afbaf-b5a1-4801-852e-de3c87ce9a72
(name "Analog Joystick 2-Axis")
(description "Analog 2-axis joystick.")
(keywords "analog,joystick,potentiometer")
(author "Carlo Stemberger, U. Bruhin")
(version "0.2")
(created 2020-04-20T06:25:15Z)
(deprecated false)
(generated_by "")
(category 588232c9-c053-4f7f-8ea2-ff4303adb7cb)
(schematic_only false)
(default_value "{{MPN or DEVICE}}")
(prefix "U")
(signal 0ecc814c-e24d-421d-87ed-26595e7fb7a2 (name "X") (role passive)
(required false) (negated false) (clock false) (forced_net "")
)
(signal 168769ac-0306-46b0-bf46-043cd904a198 (name "VCC") (role passive)
(required true) (negated false) (clock false) (forced_net "")
)
(signal 3b600395-b2b9-4d11-89c1-c8f8999aec09 (name "Y") (role passive)
(required false) (negated false) (clock false) (forced_net "")
)
(signal 0933fa21-3f23-4a14-9fc8-f5ff0bac7cf0 (name "GND") (role passive)
(required true) (negated false) (clock false) (forced_net "")
)
(variant c34b36a5-ab8b-4e9c-89e2-9c2524642d15 (norm "")
(name "default")
(description "")
(gate d74be886-a3c4-45ba-a401-0b7c3f156cf4
(symbol 535930c9-6dab-4797-9bca-7a89523780d5)
(position 0.0 0.0) (rotation 0.0) (required true) (suffix "")
(pin 0c9cecd3-5476-449b-bcbc-de095b16fc1d (signal 0ecc814c-e24d-421d-87ed-26595e7fb7a2) (text signal))
(pin 3812f595-a6b2-4bca-b0c7-0f7e9a6925c3 (signal 168769ac-0306-46b0-bf46-043cd904a198) (text signal))
(pin c993fcfc-da9b-4161-987a-42deda6c588b (signal 0933fa21-3f23-4a14-9fc8-f5ff0bac7cf0) (text signal))
(pin f5494ce3-ca33-464c-b161-78905c8859c4 (signal 3b600395-b2b9-4d11-89c1-c8f8999aec09) (text signal))
)
)
)
1 change: 1 addition & 0 deletions cmp/372b0248-b951-4a5e-842a-f8ec4e14fac0/.librepcb-cmp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
42 changes: 42 additions & 0 deletions cmp/372b0248-b951-4a5e-842a-f8ec4e14fac0/component.lp
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
(librepcb_component 372b0248-b951-4a5e-842a-f8ec4e14fac0
(name "Analog Joystick 2-Axis With Button")
(description "Analog 2-axis joystick with select button (connected to GND when pressed).")
(keywords "analog,joystick,potentiometer,button")
(author "Carlo Stemberger, U. Bruhin")
(version "0.2")
(created 2020-04-20T06:01:37Z)
(deprecated false)
(generated_by "")
(category 588232c9-c053-4f7f-8ea2-ff4303adb7cb)
(schematic_only false)
(default_value "{{MPN or DEVICE}}")
(prefix "U")
(signal 65e2929d-00d3-42a1-83ca-7125987aaa71 (name "X") (role passive)
(required false) (negated false) (clock false) (forced_net "")
)
(signal 7435d28b-e217-4ebe-b836-91822aa01b75 (name "VCC") (role passive)
(required true) (negated false) (clock false) (forced_net "")
)
(signal e30c5adc-95c7-4de8-84ef-733b21401e94 (name "Y") (role passive)
(required false) (negated false) (clock false) (forced_net "")
)
(signal e28f3fdb-6a63-4452-a132-895a83ce7c36 (name "BTN") (role passive)
(required false) (negated false) (clock false) (forced_net "")
)
(signal b10f4e9e-77b4-4d72-b6b1-05026523f11c (name "GND") (role passive)
(required true) (negated false) (clock false) (forced_net "")
)
(variant 574f60c4-9049-4021-9d94-fb0d81969c78 (norm "")
(name "default")
(description "")
(gate 28ee2c74-0e9d-4fd4-84e2-07107aec05db
(symbol dcb676e9-8ca1-41aa-9ca6-7961f23c8c98)
(position 0.0 0.0) (rotation 0.0) (required true) (suffix "")
(pin 33a64209-0e7d-45f9-9742-b0cc9fbe1e3f (signal e28f3fdb-6a63-4452-a132-895a83ce7c36) (text signal))
(pin 547d5a1c-dd3a-4774-98b1-e93cd74c4724 (signal b10f4e9e-77b4-4d72-b6b1-05026523f11c) (text signal))
(pin 5a4704ee-702d-4274-914a-22ab55d3eefc (signal e30c5adc-95c7-4de8-84ef-733b21401e94) (text signal))
(pin abcdcf30-80cb-4e83-882c-fbd24bf678d6 (signal 7435d28b-e217-4ebe-b836-91822aa01b75) (text signal))
(pin e36cc092-6d15-4c36-a3ae-0873acc36d13 (signal 65e2929d-00d3-42a1-83ca-7125987aaa71) (text signal))
)
)
)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
10 changes: 10 additions & 0 deletions cmpcat/588232c9-c053-4f7f-8ea2-ff4303adb7cb/component_category.lp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(librepcb_component_category 588232c9-c053-4f7f-8ea2-ff4303adb7cb
(name "Joysticks")
(description "")
(keywords "")
(author "Carlo Stemberger")
(version "0.1")
(created 2020-04-20T05:26:36Z)
(deprecated false)
(parent 5347fa0a-108b-4fa0-b97d-947d35c218be)
)
1 change: 1 addition & 0 deletions sym/535930c9-6dab-4797-9bca-7a89523780d5/.librepcb-sym
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
45 changes: 45 additions & 0 deletions sym/535930c9-6dab-4797-9bca-7a89523780d5/symbol.lp
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
(librepcb_symbol 535930c9-6dab-4797-9bca-7a89523780d5
(name "Analog Joystick 2-Axis")
(description "Analog 2-axis joystick.")
(keywords "analog,joystick,potentiometer")
(author "Carlo Stemberger, U. Bruhin")
(version "0.2")
(created 2020-04-20T06:15:39Z)
(deprecated false)
(generated_by "")
(category 588232c9-c053-4f7f-8ea2-ff4303adb7cb)
(pin c993fcfc-da9b-4161-987a-42deda6c588b (name "GND")
(position -7.62 -2.54) (rotation 0.0) (length 2.54)
(name_position 3.81 0.0) (name_rotation 0.0) (name_height 2.5)
(name_align left center)
)
(pin 3812f595-a6b2-4bca-b0c7-0f7e9a6925c3 (name "VCC")
(position -7.62 2.54) (rotation 0.0) (length 2.54)
(name_position 3.81 0.0) (name_rotation 0.0) (name_height 2.5)
(name_align left center)
)
(pin 0c9cecd3-5476-449b-bcbc-de095b16fc1d (name "X")
(position 7.62 2.54) (rotation 180.0) (length 2.54)
(name_position 3.81 0.0) (name_rotation 0.0) (name_height 2.5)
(name_align left center)
)
(pin f5494ce3-ca33-464c-b161-78905c8859c4 (name "Y")
(position 7.62 -2.54) (rotation 180.0) (length 2.54)
(name_position 3.81 0.0) (name_rotation 0.0) (name_height 2.5)
(name_align left center)
)
(polygon 5cab61fd-e7a6-48f9-a77e-70b9ac030f79 (layer sym_outlines)
(width 0.2) (fill false) (grab_area true)
(vertex (position -5.08 5.08) (angle 0.0))
(vertex (position 5.08 5.08) (angle 0.0))
(vertex (position 5.08 -5.08) (angle 0.0))
(vertex (position -5.08 -5.08) (angle 0.0))
(vertex (position -5.08 5.08) (angle 0.0))
)
(text d1b1d3b3-99e4-4ca3-a51b-19554065fb07 (layer sym_names) (value "{{NAME}}")
(align left bottom) (height 2.5) (position -5.08 5.08) (rotation 0.0)
)
(text 530f9e1e-b9d7-49f8-bb1d-503f36274486 (layer sym_values) (value "{{VALUE}}")
(align left top) (height 2.5) (position -5.08 -5.08) (rotation 0.0)
)
)
1 change: 1 addition & 0 deletions sym/dcb676e9-8ca1-41aa-9ca6-7961f23c8c98/.librepcb-sym
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
50 changes: 50 additions & 0 deletions sym/dcb676e9-8ca1-41aa-9ca6-7961f23c8c98/symbol.lp
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
(librepcb_symbol dcb676e9-8ca1-41aa-9ca6-7961f23c8c98
(name "Analog Joystick 2-Axis With Button")
(description "Analog 2-axis joystick with select button.")
(keywords "analog,joystick,potentiometer,button")
(author "Carlo Stemberger, U. Bruhin")
(version "0.2")
(created 2020-04-20T05:38:37Z)
(deprecated false)
(generated_by "")
(category 588232c9-c053-4f7f-8ea2-ff4303adb7cb)
(pin 547d5a1c-dd3a-4774-98b1-e93cd74c4724 (name "GND")
(position -7.62 -2.54) (rotation 0.0) (length 2.54)
(name_position 3.81 0.0) (name_rotation 0.0) (name_height 2.5)
(name_align left center)
)
(pin abcdcf30-80cb-4e83-882c-fbd24bf678d6 (name "VCC")
(position -7.62 2.54) (rotation 0.0) (length 2.54)
(name_position 3.81 0.0) (name_rotation 0.0) (name_height 2.5)
(name_align left center)
)
(pin e36cc092-6d15-4c36-a3ae-0873acc36d13 (name "X")
(position 7.62 2.54) (rotation 180.0) (length 2.54)
(name_position 3.81 0.0) (name_rotation 0.0) (name_height 2.5)
(name_align left center)
)
(pin 5a4704ee-702d-4274-914a-22ab55d3eefc (name "Y")
(position 7.62 0.0) (rotation 180.0) (length 2.54)
(name_position 3.81 0.0) (name_rotation 0.0) (name_height 2.5)
(name_align left center)
)
(pin 33a64209-0e7d-45f9-9742-b0cc9fbe1e3f (name "BTN")
(position 7.62 -2.54) (rotation 180.0) (length 2.54)
(name_position 3.81 0.0) (name_rotation 0.0) (name_height 2.5)
(name_align left center)
)
(polygon d93ebadb-ea7f-4be8-8818-ebc511462db8 (layer sym_outlines)
(width 0.2) (fill false) (grab_area true)
(vertex (position -5.08 5.08) (angle 0.0))
(vertex (position 5.08 5.08) (angle 0.0))
(vertex (position 5.08 -5.08) (angle 0.0))
(vertex (position -5.08 -5.08) (angle 0.0))
(vertex (position -5.08 5.08) (angle 0.0))
)
(text 8d68afc5-7ce1-48bb-b2d0-7b9b9e98a0c6 (layer sym_names) (value "{{NAME}}")
(align left bottom) (height 2.5) (position -5.08 5.08) (rotation 0.0)
)
(text 7b1d49d9-da22-44b2-909d-ad75306661cd (layer sym_values) (value "{{VALUE}}")
(align left top) (height 2.5) (position -5.08 -5.08) (rotation 0.0)
)
)