From 6ad7f45a85d46d5a5d209891fa31a2fd292bae43 Mon Sep 17 00:00:00 2001 From: "U. Bruhin" Date: Mon, 16 Oct 2023 14:40:50 +0200 Subject: [PATCH 1/2] Add cmpcat for Joysticks --- .../.librepcb-cmpcat | 1 + .../component_category.lp | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 cmpcat/588232c9-c053-4f7f-8ea2-ff4303adb7cb/.librepcb-cmpcat create mode 100644 cmpcat/588232c9-c053-4f7f-8ea2-ff4303adb7cb/component_category.lp diff --git a/cmpcat/588232c9-c053-4f7f-8ea2-ff4303adb7cb/.librepcb-cmpcat b/cmpcat/588232c9-c053-4f7f-8ea2-ff4303adb7cb/.librepcb-cmpcat new file mode 100644 index 00000000..d00491fd --- /dev/null +++ b/cmpcat/588232c9-c053-4f7f-8ea2-ff4303adb7cb/.librepcb-cmpcat @@ -0,0 +1 @@ +1 diff --git a/cmpcat/588232c9-c053-4f7f-8ea2-ff4303adb7cb/component_category.lp b/cmpcat/588232c9-c053-4f7f-8ea2-ff4303adb7cb/component_category.lp new file mode 100644 index 00000000..f51d4d48 --- /dev/null +++ b/cmpcat/588232c9-c053-4f7f-8ea2-ff4303adb7cb/component_category.lp @@ -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) +) From 2de7d2c65da63e1beb3812912f476576157eeb65 Mon Sep 17 00:00:00 2001 From: "U. Bruhin" Date: Mon, 16 Oct 2023 14:41:15 +0200 Subject: [PATCH 2/2] Add sym/cmp for analog joysticks --- .../.librepcb-cmp | 1 + .../component.lp | 38 ++++++++++++++ .../.librepcb-cmp | 1 + .../component.lp | 42 ++++++++++++++++ .../.librepcb-sym | 1 + .../symbol.lp | 45 +++++++++++++++++ .../.librepcb-sym | 1 + .../symbol.lp | 50 +++++++++++++++++++ 8 files changed, 179 insertions(+) create mode 100644 cmp/292afbaf-b5a1-4801-852e-de3c87ce9a72/.librepcb-cmp create mode 100644 cmp/292afbaf-b5a1-4801-852e-de3c87ce9a72/component.lp create mode 100644 cmp/372b0248-b951-4a5e-842a-f8ec4e14fac0/.librepcb-cmp create mode 100644 cmp/372b0248-b951-4a5e-842a-f8ec4e14fac0/component.lp create mode 100644 sym/535930c9-6dab-4797-9bca-7a89523780d5/.librepcb-sym create mode 100644 sym/535930c9-6dab-4797-9bca-7a89523780d5/symbol.lp create mode 100644 sym/dcb676e9-8ca1-41aa-9ca6-7961f23c8c98/.librepcb-sym create mode 100644 sym/dcb676e9-8ca1-41aa-9ca6-7961f23c8c98/symbol.lp diff --git a/cmp/292afbaf-b5a1-4801-852e-de3c87ce9a72/.librepcb-cmp b/cmp/292afbaf-b5a1-4801-852e-de3c87ce9a72/.librepcb-cmp new file mode 100644 index 00000000..d00491fd --- /dev/null +++ b/cmp/292afbaf-b5a1-4801-852e-de3c87ce9a72/.librepcb-cmp @@ -0,0 +1 @@ +1 diff --git a/cmp/292afbaf-b5a1-4801-852e-de3c87ce9a72/component.lp b/cmp/292afbaf-b5a1-4801-852e-de3c87ce9a72/component.lp new file mode 100644 index 00000000..e4823708 --- /dev/null +++ b/cmp/292afbaf-b5a1-4801-852e-de3c87ce9a72/component.lp @@ -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)) + ) + ) +) diff --git a/cmp/372b0248-b951-4a5e-842a-f8ec4e14fac0/.librepcb-cmp b/cmp/372b0248-b951-4a5e-842a-f8ec4e14fac0/.librepcb-cmp new file mode 100644 index 00000000..d00491fd --- /dev/null +++ b/cmp/372b0248-b951-4a5e-842a-f8ec4e14fac0/.librepcb-cmp @@ -0,0 +1 @@ +1 diff --git a/cmp/372b0248-b951-4a5e-842a-f8ec4e14fac0/component.lp b/cmp/372b0248-b951-4a5e-842a-f8ec4e14fac0/component.lp new file mode 100644 index 00000000..dd724205 --- /dev/null +++ b/cmp/372b0248-b951-4a5e-842a-f8ec4e14fac0/component.lp @@ -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)) + ) + ) +) diff --git a/sym/535930c9-6dab-4797-9bca-7a89523780d5/.librepcb-sym b/sym/535930c9-6dab-4797-9bca-7a89523780d5/.librepcb-sym new file mode 100644 index 00000000..d00491fd --- /dev/null +++ b/sym/535930c9-6dab-4797-9bca-7a89523780d5/.librepcb-sym @@ -0,0 +1 @@ +1 diff --git a/sym/535930c9-6dab-4797-9bca-7a89523780d5/symbol.lp b/sym/535930c9-6dab-4797-9bca-7a89523780d5/symbol.lp new file mode 100644 index 00000000..c7ed4fec --- /dev/null +++ b/sym/535930c9-6dab-4797-9bca-7a89523780d5/symbol.lp @@ -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) + ) +) diff --git a/sym/dcb676e9-8ca1-41aa-9ca6-7961f23c8c98/.librepcb-sym b/sym/dcb676e9-8ca1-41aa-9ca6-7961f23c8c98/.librepcb-sym new file mode 100644 index 00000000..d00491fd --- /dev/null +++ b/sym/dcb676e9-8ca1-41aa-9ca6-7961f23c8c98/.librepcb-sym @@ -0,0 +1 @@ +1 diff --git a/sym/dcb676e9-8ca1-41aa-9ca6-7961f23c8c98/symbol.lp b/sym/dcb676e9-8ca1-41aa-9ca6-7961f23c8c98/symbol.lp new file mode 100644 index 00000000..91d0e948 --- /dev/null +++ b/sym/dcb676e9-8ca1-41aa-9ca6-7961f23c8c98/symbol.lp @@ -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) + ) +)