Skip to content

Instantly share code, notes, and snippets.

@guidoism
Last active December 22, 2022 03:51
Show Gist options
  • Save guidoism/dc8e6d0df395718a67617301555326ee to your computer and use it in GitHub Desktop.
Save guidoism/dc8e6d0df395718a67617301555326ee to your computer and use it in GitHub Desktop.
Absolem and Kyria made a baby together (Trying out Ergogen 4.0 features)
# TODO:
# - [X] Outlines that include the mirrored part
# - [X] Glue up holes
# - [ ] PCB with connections
# - [ ] Extruded case
points:
zones:
matrix:
anchor:
rotate: 5
columns:
farpinky:
pinky:
ring.key.stagger: 12
middle.key.stagger: 5
index.key.stagger: -6
inner.key.stagger: -2
rows:
bottom:
home:
top:
thumbfan:
anchor:
ref: matrix_middle_bottom
shift: [5.5, -25]
columns:
tucky:
key.splay: -5
rows.top: $unset # EXAMPLE: <- Removing tucky top key
near:
key.splay: -15 # EXAMPLE:
key.origin: [-9.5, -9.5] # <- Using key.foo as siblings for clarity
rows.top: $unset
home.key:
splay: -15
origin: [-9.5, -9.5]
far.key:
splay: -15
origin: [-9.5, -9.5]
rows:
thumb:
top:
rotate: -20
mirror:
ref: thumbfan_far_top
distance: 25
outlines:
outline:
main:
what: rectangle
where: /.*matrix.*|mirror_thumbfan.*/ # EXAMPLE: <- Using regex here
size: 20
fillet: 2
middle:
what: polygon
points:
- ref: matrix_inner_top
shift: [$default_width/2,$default_height/2]
- ref: thumbfan_tucky_thumb
shift: [$default_width/2,$default_height/2]
- ref: thumbfan_tucky_thumb
shift: [$default_width/2,-$default_height/2]
- ref: thumbfan_near_thumb
shift: [0,-$default_height/2]
- ref: thumbfan_home_thumb
shift: [0,-$default_height/2]
- ref: thumbfan_far_thumb
shift: [$default_width/2,-$default_height/2]
- ref: thumbfan_far_top
shift: [$default_width/2,$default_height/2]
- ref: mirror_thumbfan_far_thumb
shift: [$default_width/2,-$default_height/2]
- ref: mirror_thumbfan_home_thumb
shift: [0,-$default_height/2]
- ref: mirror_thumbfan_near_thumb
shift: [0,-$default_height/2]
- ref: mirror_thumbfan_tucky_thumb
shift: [$default_width/2,-$default_height/2]
- ref: mirror_thumbfan_tucky_thumb
shift: [$default_width/2,$default_height/2]
- ref: mirror_matrix_inner_top
shift: [$default_width/2,$default_height/2]
min:
what: rectangle
where: true # QUESTION: What the hell does true mean here?
bound: false
size: 14
operation: subtract
plate:
- what: outline
name: outline
pcbs.pcb.outlines:
- outline: plate
pcbs.pcb.footprints:
- what: mx
where: true
params:
from: from
to: to
keycaps: true
- what: promicro
params:
orientation: up
adjust.shift: [135, 0] # QUESTION: Can I use math to make this centered?
adjust.rotate: -90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment