Commit acc7b27c authored by David Huss's avatar David Huss 💬
Browse files

Use more universal switch holes

It can be quite hard to get toggle switches with 2.54mm lead spacing.
This commit adds extra holes that allow:
- The usage of switches with solder lugs
- The usage of switches with 4.7mm lead spacing
parent 26378274
This diff is collapsed.
{
"holes": {
"056fa8e5-8b21-454e-a805-467fd49763b6": {
"diameter": 500000,
"length": 1500000,
"parameter_class": "hole",
"placement": {
"angle": 32768,
"mirror": false,
"shift": [
0,
0
]
},
"plated": true,
"shape": "slot"
}
},
"name": "Obround Hole",
"padstack_type": "hole",
"parameter_program": "get-parameter [ hole_diameter ]\nget-parameter [ hole_length ]\nset-hole [ hole slot ]\n\nget-parameter [ hole_length ]\nget-parameter [ hole_diameter ]\ndupc\n\nget-parameter [ hole_solder_mask_expansion ] 2 *\n+xy\nset-shape [ mask obround ]\n\nget-parameter [ hole_annular_ring ] 2 *\n+xy\nset-shape [ via obround ]",
"parameter_set": {
"hole_annular_ring": 500000,
"hole_diameter": 500000,
"hole_length": 1500000,
"hole_solder_mask_expansion": 200000
},
"parameters_required": [
"hole_diameter",
"hole_length",
"hole_annular_ring"
],
"polygons": {},
"shapes": {
"0fcc5be3-fa35-464c-ac89-7bfaea0821da": {
"form": "obround",
"layer": -110,
"parameter_class": "mask",
"params": [
1900000,
900000
],
"placement": {
"angle": 0,
"mirror": false,
"shift": [
0,
0
]
}
},
"1919564e-4dfd-4afa-ae6b-b06ddcefb9e6": {
"form": "obround",
"layer": 10,
"parameter_class": "mask",
"params": [
1900000,
900000
],
"placement": {
"angle": 0,
"mirror": false,
"shift": [
0,
0
]
}
},
"3d4a1caa-13a9-4828-aee6-4ec776b4f007": {
"form": "obround",
"layer": -1,
"parameter_class": "via",
"params": [
2500000,
1500000
],
"placement": {
"angle": 0,
"mirror": false,
"shift": [
0,
0
]
}
},
"587492a5-d20b-4258-b1a8-04da900ea393": {
"form": "obround",
"layer": -100,
"parameter_class": "via",
"params": [
2500000,
1500000
],
"placement": {
"angle": 0,
"mirror": false,
"shift": [
0,
0
]
}
},
"c0afc6ea-f577-42ee-8860-16eaf52721bf": {
"form": "obround",
"layer": 0,
"parameter_class": "via",
"params": [
2500000,
1500000
],
"placement": {
"angle": 0,
"mirror": false,
"shift": [
0,
0
]
}
}
},
"type": "padstack",
"uuid": "866a4e5b-5ba9-4509-b395-c6bd78051303"
}
\ No newline at end of file
......@@ -65,7 +65,7 @@
"net": "3f1b32f7-715a-4d07-b22e-a8adf55c6cf1"
},
"6cbea03f-31ec-49ea-9903-b9bf7b26e340/4c0e5d34-b007-432d-880b-3a3b8e963a14": {
"net": "549eeeb2-c0e4-4c9f-a7c0-ee25d4c09a3f"
"net": "f5ade265-1f11-49fe-83ca-2bd02ccfcb8a"
},
"6cbea03f-31ec-49ea-9903-b9bf7b26e340/b22250f7-9956-4ac8-ada1-725b7ba800c8": {
"net": "16f629b9-b5b2-4204-b71b-ca04c38c35b7"
......@@ -83,10 +83,10 @@
"a8bf14c8-57e0-412a-aa17-b8aa2b50ba12": {
"connections": {
"0fa47951-6a24-4da6-9e8c-50144a554124/8ba026a2-e91e-48e7-aacb-662be193e998": {
"net": "549eeeb2-c0e4-4c9f-a7c0-ee25d4c09a3f"
"net": "f5ade265-1f11-49fe-83ca-2bd02ccfcb8a"
},
"0fa47951-6a24-4da6-9e8c-50144a554124/a8403f11-52b1-4e92-b913-70a5b7658316": {
"net": "549eeeb2-c0e4-4c9f-a7c0-ee25d4c09a3f"
"net": "f5ade265-1f11-49fe-83ca-2bd02ccfcb8a"
},
"0fa47951-6a24-4da6-9e8c-50144a554124/f70211e7-178d-4a82-b38c-d65d61aca5bb": {
"net": "6232b588-4b1a-453e-9567-07a142265733"
......@@ -155,14 +155,14 @@
"nets": {
"16f629b9-b5b2-4204-b71b-ca04c38c35b7": {
"is_power": false,
"name": "",
"name": "OUT2",
"net_class": "c1616048-df31-4910-a01a-d4d769b22123",
"power_symbol_name_visible": true,
"power_symbol_style": "gnd"
},
"275a877c-e4a3-4635-aa73-b9d766f950f3": {
"is_power": false,
"name": "",
"name": "IN2",
"net_class": "c1616048-df31-4910-a01a-d4d769b22123",
"power_symbol_name_visible": true,
"power_symbol_style": "gnd"
......@@ -174,30 +174,30 @@
"power_symbol_name_visible": false,
"power_symbol_style": "gnd"
},
"549eeeb2-c0e4-4c9f-a7c0-ee25d4c09a3f": {
"6232b588-4b1a-453e-9567-07a142265733": {
"is_power": false,
"name": "",
"name": "IN1",
"net_class": "c1616048-df31-4910-a01a-d4d769b22123",
"power_symbol_name_visible": true,
"power_symbol_style": "gnd"
},
"6232b588-4b1a-453e-9567-07a142265733": {
"7d78d528-8998-4036-ac76-f3f4b58b5dac": {
"is_power": false,
"name": "",
"net_class": "c1616048-df31-4910-a01a-d4d769b22123",
"power_symbol_name_visible": true,
"power_symbol_style": "gnd"
},
"7d78d528-8998-4036-ac76-f3f4b58b5dac": {
"b9b0dc4c-7575-4555-8b64-46b11458517b": {
"is_power": false,
"name": "",
"net_class": "c1616048-df31-4910-a01a-d4d769b22123",
"power_symbol_name_visible": true,
"power_symbol_style": "gnd"
},
"b9b0dc4c-7575-4555-8b64-46b11458517b": {
"f5ade265-1f11-49fe-83ca-2bd02ccfcb8a": {
"is_power": false,
"name": "",
"name": "OUT1",
"net_class": "c1616048-df31-4910-a01a-d4d769b22123",
"power_symbol_name_visible": true,
"power_symbol_style": "gnd"
......
......@@ -40,6 +40,12 @@
113750000
]
},
"0ca92404-32de-4bd8-8180-9c26b505fe30": {
"position": [
141250000,
118750000
]
},
"0cb4caac-6d41-4790-b359-8f23cc5696ed": {
"position": [
131250000,
......@@ -94,12 +100,24 @@
131250000
]
},
"5a9ce392-5385-473f-ace2-7d70b413c8b3": {
"position": [
175000000,
88750000
]
},
"5bb272d5-d179-413f-807a-80762a0152e6": {
"position": [
131250000,
131250000
]
},
"62fda037-95b1-4b96-91f5-b950e9f728cd": {
"position": [
141250000,
83750000
]
},
"68ebfb4c-b4ac-412c-bc81-0993c3b5b62f": {
"position": [
126250000,
......@@ -112,6 +130,12 @@
111250000
]
},
"71adcd2a-4871-4e42-bcaf-d4864b71b4aa": {
"position": [
175000000,
118750000
]
},
"731e1438-6a58-47ef-806b-7172033327d6": {
"position": [
133750000,
......@@ -148,6 +172,12 @@
83750000
]
},
"de740964-a32c-4ab4-ad43-782a621e1d0c": {
"position": [
141250000,
88750000
]
},
"e75ba99e-2d17-4284-a33b-591047c03ada": {
"position": [
160000000,
......@@ -166,6 +196,12 @@
91250000
]
},
"eef6c300-349c-4dd7-b7d5-9c16736979b0": {
"position": [
141250000,
113750000
]
},
"f717a368-37e3-41b8-9c20-978233caae0b": {
"position": [
160000000,
......@@ -175,7 +211,32 @@
},
"lines": {},
"name": "Main",
"net_labels": {},
"net_labels": {
"492aade7-7993-4f5b-871b-c62aef871dc0": {
"junction": "eef6c300-349c-4dd7-b7d5-9c16736979b0",
"offsheet_refs": true,
"orientation": "right",
"size": 1500000
},
"5b780390-77d3-4823-b056-3c8f8afa45b9": {
"junction": "71adcd2a-4871-4e42-bcaf-d4864b71b4aa",
"offsheet_refs": true,
"orientation": "right",
"size": 1500000
},
"9f979ea5-4c11-4cdb-881d-eba0d143ccd7": {
"junction": "5a9ce392-5385-473f-ace2-7d70b413c8b3",
"offsheet_refs": true,
"orientation": "right",
"size": 1500000
},
"c26afca5-760f-4ed5-bbbc-4e0311e6e024": {
"junction": "62fda037-95b1-4b96-91f5-b950e9f728cd",
"offsheet_refs": true,
"orientation": "right",
"size": 1500000
}
},
"net_lines": {
"05a7ea18-3297-4d10-85a2-bd6725267538": {
"from": {
......@@ -213,6 +274,18 @@
"pin": "0c0c51af-99be-41ea-ab15-278e4a838078/8ba026a2-e91e-48e7-aacb-662be193e998"
}
},
"1d51c6c8-e316-4906-b93e-0879a559b63f": {
"from": {
"bus_ripper": null,
"junc": "8fe25122-4d15-440b-a8bf-7294d4806205",
"pin": null
},
"to": {
"bus_ripper": null,
"junc": "5a9ce392-5385-473f-ace2-7d70b413c8b3",
"pin": null
}
},
"22c525cc-ffc3-4d93-878c-d6a00d2a9fc4": {
"from": {
"bus_ripper": null,
......@@ -309,6 +382,30 @@
"pin": null
}
},
"4977e39e-a27e-472c-92c4-f8271a39fbf9": {
"from": {
"bus_ripper": null,
"junc": "0ca92404-32de-4bd8-8180-9c26b505fe30",
"pin": null
},
"to": {
"bus_ripper": null,
"junc": "eef6c300-349c-4dd7-b7d5-9c16736979b0",
"pin": null
}
},
"4b1a17fe-6bae-4c17-8f4f-548f23d91f54": {
"from": {
"bus_ripper": null,
"junc": "2efe69a5-0866-4d42-b1f6-dfe74037c206",
"pin": null
},
"to": {
"bus_ripper": null,
"junc": "71adcd2a-4871-4e42-bcaf-d4864b71b4aa",
"pin": null
}
},
"532f98ed-cdb1-47f6-89f1-422d678a8a20": {
"from": {
"bus_ripper": null,
......@@ -353,8 +450,8 @@
},
"to": {
"bus_ripper": null,
"junc": null,
"pin": "fc51d77d-85b2-4ea2-9278-5b52ad997d2d/f70211e7-178d-4a82-b38c-d65d61aca5bb"
"junc": "de740964-a32c-4ab4-ad43-782a621e1d0c",
"pin": null
}
},
"7ac773c3-cccc-4e36-8e07-8f6cce5ceb1b": {
......@@ -425,8 +522,8 @@
},
"to": {
"bus_ripper": null,
"junc": null,
"pin": "c01b2a3d-6daf-42dc-9534-ff38b6ffc1f1/f572c752-5e2e-4d4f-8b8c-95c379a19121"
"junc": "0ca92404-32de-4bd8-8180-9c26b505fe30",
"pin": null
}
},
"9644ac7e-1657-47de-baa0-7c910f8db5b1": {
......@@ -465,6 +562,18 @@
"pin": "5e8ecef8-33df-469b-9a37-442d943afd65/b22250f7-9956-4ac8-ada1-725b7ba800c8"
}
},
"9c0ac636-87df-4122-a335-0d8210ce543a": {
"from": {
"bus_ripper": null,
"junc": "62fda037-95b1-4b96-91f5-b950e9f728cd",
"pin": null
},
"to": {
"bus_ripper": null,
"junc": "de740964-a32c-4ab4-ad43-782a621e1d0c",
"pin": null
}
},
"a70c1492-f9fa-44ac-bde5-628b2a68ef4a": {
"from": {
"bus_ripper": null,
......@@ -501,6 +610,18 @@
"pin": null
}
},
"c1998163-c954-4abe-afa0-e1494c59607d": {
"from": {
"bus_ripper": null,
"junc": "0ca92404-32de-4bd8-8180-9c26b505fe30",
"pin": null
},
"to": {
"bus_ripper": null,
"junc": null,
"pin": "c01b2a3d-6daf-42dc-9534-ff38b6ffc1f1/f572c752-5e2e-4d4f-8b8c-95c379a19121"
}
},
"c5ad70e1-5c35-42a4-bbe6-680ea5f504ac": {
"from": {
"bus_ripper": null,
......@@ -549,6 +670,18 @@
"pin": null
}
},
"d2e7546a-bede-4c50-aa1d-0c6be6692335": {
"from": {
"bus_ripper": null,
"junc": "de740964-a32c-4ab4-ad43-782a621e1d0c",
"pin": null
},
"to": {
"bus_ripper": null,
"junc": null,
"pin": "fc51d77d-85b2-4ea2-9278-5b52ad997d2d/f70211e7-178d-4a82-b38c-d65d61aca5bb"
}
},
"ee20007a-1869-4e8c-b0e9-1a30feac19f6": {
"from": {
"bus_ripper": null,
......
No preview for this file type
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment