PCB: Replace controller with 2x6 pin header
This commit is contained in:
parent
5ee51ef8da
commit
4d2948fcb0
4 changed files with 102 additions and 210 deletions
|
|
@ -42,42 +42,53 @@ points:
|
|||
rows:
|
||||
# Modifier row (Ctrl, ..., but excluding the thumb keys)
|
||||
mod:
|
||||
row_net: P9
|
||||
# Bottom letter row (Shift, Backspace, ZXCV...)
|
||||
bottom:
|
||||
row_net: P7
|
||||
# Middle letter row (Esc, ASDFG...)
|
||||
home:
|
||||
row_net: P5
|
||||
# Top letter row (Tab, QWERT...)
|
||||
top:
|
||||
row_net: P3
|
||||
# Number row (`, 12345...)
|
||||
num:
|
||||
row_net: P1
|
||||
|
||||
# Key columns (from left to right)
|
||||
columns:
|
||||
# Left-most column (`, Tab, Esc, Shift, Ctrl)
|
||||
outer:
|
||||
key.column_net: P10
|
||||
key.stagger: 0.25cy
|
||||
|
||||
# First letter column (1, QA, ...)
|
||||
one:
|
||||
key.column_net: P8
|
||||
key.stagger: 0.25cy
|
||||
|
||||
# Second letter column (2, WSZ)
|
||||
two:
|
||||
key.column_net: P6
|
||||
rows.mod.skip: true
|
||||
|
||||
# Third letter column (3, EDX)
|
||||
three:
|
||||
key.column_net: P4
|
||||
rows.mod.skip: true
|
||||
|
||||
# Fourth letter column (4, RFC)
|
||||
four:
|
||||
rows.mod.skip: true
|
||||
key.column_net: P2
|
||||
key.stagger: -0.25cy
|
||||
rows.mod.skip: true
|
||||
|
||||
# Fifth letter column (5, TGV)
|
||||
five:
|
||||
rows.mod.skip: true
|
||||
key.column_net: P12
|
||||
key.stagger: -0.25cy
|
||||
rows.mod.skip: true
|
||||
|
||||
# Thumb fan
|
||||
thumb:
|
||||
|
|
@ -88,15 +99,20 @@ points:
|
|||
|
||||
# Rotate the thumb keys around the bottom-left corner of the key
|
||||
key:
|
||||
row_net: P9
|
||||
origin: [ -0.5cx, -0.5cy ]
|
||||
splay: -8
|
||||
|
||||
# Define thumb keys
|
||||
columns:
|
||||
one:
|
||||
key.column_net: P6
|
||||
two:
|
||||
key.column_net: P4
|
||||
three:
|
||||
key.column_net: P2
|
||||
four:
|
||||
key.column_net: P12
|
||||
|
||||
# Generate outlines that can be used in the PCB and for 3D models
|
||||
outlines:
|
||||
|
|
@ -128,12 +144,13 @@ outlines:
|
|||
board_preview:
|
||||
- board
|
||||
- ^keys
|
||||
# Pro Micro board - TODO: position?
|
||||
# Pin header
|
||||
- what: rectangle
|
||||
operation: stack
|
||||
where: primary_five_num
|
||||
size: [ 18, 32 ]
|
||||
adjust.shift: [ cx + 2, 0.25cy ]
|
||||
size: [ 5.2, 15.4 ]
|
||||
adjust.rotate: 90
|
||||
adjust.shift: [ 0cx, cy - 2 ]
|
||||
|
||||
# Cutouts for the switches
|
||||
switch_cutouts:
|
||||
|
|
@ -163,8 +180,8 @@ pcbs:
|
|||
keycaps: true
|
||||
reverse: true
|
||||
hotswap: true
|
||||
from: "{{colrow}}"
|
||||
to: "{{row_net}}"
|
||||
from: "{{column_net}}"
|
||||
to: "{{colrow}}"
|
||||
|
||||
diode:
|
||||
what: diode_smd
|
||||
|
|
@ -175,28 +192,16 @@ pcbs:
|
|||
params:
|
||||
side: B
|
||||
from: "{{colrow}}"
|
||||
to: "{{column_net}}"
|
||||
to: "{{row_net}}"
|
||||
|
||||
controller:
|
||||
what: promicro_modified
|
||||
pin_header:
|
||||
what: pin_header_2x6
|
||||
where:
|
||||
ref: primary_five_num
|
||||
rotate: -90
|
||||
shift: [ cx + 2, cy - 14 ]
|
||||
params:
|
||||
orientation: up
|
||||
|
||||
# TODO: Place reset button
|
||||
# reset_button:
|
||||
# what: button_6x6
|
||||
# where:
|
||||
# # TODO: Where?
|
||||
# ref: pad_four_five
|
||||
# shift: [ 0, 15 ]
|
||||
# params:
|
||||
# side: B
|
||||
# from: GND
|
||||
# to: RST
|
||||
rotate: 90
|
||||
# The footprint's origin is on the first pin, so we need an offset of -6.35 / -1.27 (2.5 pins, 0.5 pins) to
|
||||
# center the footprint.
|
||||
shift: [ 0 - 6.35, cy - 2 - 1.27 ]
|
||||
|
||||
# Mounting holes
|
||||
# TODO: Place these
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue