From dd87659fdb1c1ef4ebf14cf8c9c57217cc3accbe Mon Sep 17 00:00:00 2001 From: Stefan Schwarz Date: Fri, 25 Mar 2022 01:35:34 +0100 Subject: [PATCH] rename board --- 23treus.yaml | 184 +++++++++++++++++++++++++++++++++++++++++++++++++++ 45treus.yaml | 113 ------------------------------- Makefile | 7 +- 3 files changed, 189 insertions(+), 115 deletions(-) create mode 100644 23treus.yaml delete mode 100644 45treus.yaml diff --git a/23treus.yaml b/23treus.yaml new file mode 100644 index 0000000..60d5f00 --- /dev/null +++ b/23treus.yaml @@ -0,0 +1,184 @@ +points: + key: + footprints: + mx_hotswap: + type: mx + params: + hotswap: true + reverse: false + keycaps: true + nets: + from: =colrow + to: =column_net + diode: + type: diode + nets: + from: =colrow + to: =row_net + anchor: + shift: [0, -5] + rotate: 180 + + zones: + matrix: + columns: + pinky: + key: { column_net: P20 } + ring: + stagger: 4 + key: { column_net: P19 } + middle: + stagger: 5 + key: { column_net: P18 } + index: + stagger: -5 + key: { column_net: P15 } + inner: + stagger: -6 + key: { column_net: P14 } + thumb: + stagger: 10 + row_overrides: + bottom: + key: { column_net: P16 } + rows: + bottom: + row_net: P6 + home: + row_net: P5 + top: + row_net: P4 + num: + row_net: P3 + + rotate: -23 + mirror: + ref: matrix_thumb_bottom + distance: 42 + +outlines: + exports: + # outer border + outer: + - type: polygon + points: + - ref: matrix_inner_num + shift: [10, 10] + - ref: matrix_middle_num + shift: [10, 10] + - ref: matrix_middle_num + shift: [-10, 10] + - ref: matrix_pinky_num + shift: [-10, 10] + - ref: matrix_pinky_bottom + shift: [-10, -10] + - ref: matrix_pinky_bottom + shift: [10, -10] + - ref: matrix_inner_bottom + shift: [-10, -10] + - ref: matrix_inner_bottom + shift: [10, -10] + - ref: mirror_matrix_inner_bottom + shift: [10, -10] + - ref: mirror_matrix_inner_bottom + shift: [-10, -10] + - ref: mirror_matrix_pinky_bottom + shift: [10, -10] + - ref: mirror_matrix_pinky_bottom + shift: [-10, -10] + - ref: mirror_matrix_pinky_num + shift: [-10, 10] + - ref: mirror_matrix_middle_num + shift: [-10, 10] + - ref: mirror_matrix_middle_num + shift: [10, 10] + - ref: mirror_matrix_inner_num + shift: [10, 10] + #- type: keys + # side: both + # size: 20 + # corner: 1 + #- type: polygon + # points: + # - ref: matrix_inner_num + # shift: [0, -5] + # - ref: matrix_thumb_bottom + # shift: [-10, -10] + # - ref: mirror_matrix_thumb_bottom + # shift: [-10, -10] + # - ref: mirror_matrix_inner_num + # shift: [0, -5] + chip: + # cutout for the chip itself + - type: rectangle + size: [18, 33] + anchor: + ref: [matrix_inner_top, mirror_matrix_inner_top] + shift: [-9, -24.5] + # cutout for the cable (looks) + - type: rectangle + size: [8, 50] + anchor: + ref: [matrix_inner_top, mirror_matrix_inner_top] + shift: [-4, -24.5] + # 14mm holes for cherry switches + keyholes: + - type: keys + side: both + size: 14 + bound: false + # switchplate + switchplate: + - outer + - -keyholes + - -chip + +pcbs: + main: + outlines: + outer: + outline: outer + footprints: + onoff: + type: slider + nets: + from: P1 + to: battery- + anchor: + rotate: 180 + ref: matrix_middle_bottom + shift: [0, -14] + battery+: + type: pad + params: + text: "+" + back: false + nets: + net: RAW + anchor: + ref: [matrix_inner_bottom, mirror_matrix_inner_bottom] + shift: [4, 14] + battery-: + type: pad + params: + text: "-" + back: false + nets: + net: battery- + anchor: + ref: [matrix_inner_bottom, mirror_matrix_inner_bottom] + shift: [-4, 14] + reset: + type: button + nets: + from: RST + to: GND + anchor: + ref: [matrix_inner_bottom, mirror_matrix_inner_bottom] + rotate: 90 + mcu: + type: promicro + anchor: + rotate: 270 + ref: [matrix_inner_top, mirror_matrix_inner_top] + shift: [0, -4] diff --git a/45treus.yaml b/45treus.yaml deleted file mode 100644 index bb2aa99..0000000 --- a/45treus.yaml +++ /dev/null @@ -1,113 +0,0 @@ -points: - key: - footprints: - mx_hotswap: - type: mx - params: - hotswap: true - reverse: false - keycaps: true - nets: - from: =colrow - to: =column_net - diode: - type: diode - nets: - from: =colrow - to: =row_net - anchor: - shift: [0, -5] - rotate: 180 - - zones: - matrix: - columns: - pinky: - key: { column_net: P20 } - ring: - stagger: 3 - key: { column_net: P19 } - middle: - stagger: 5 - key: { column_net: P18 } - index: - stagger: -5 - key: { column_net: P15 } - inner: - stagger: -6 - key: { column_net: P14 } - thumb: - stagger: 10 - row_overrides: - bottom: - key: { column_net: P16 } - rows: - bottom: - row_net: P6 - home: - row_net: P5 - top: - row_net: P4 - num: - row_net: P3 - - rotate: -23 - mirror: - ref: matrix_thumb_bottom - distance: 42 - -outlines: - exports: - # outer border - outer: - - type: keys - side: both - size: 25 - corner: 1 - - type: polygon - points: - - ref: matrix_inner_num - shift: [0, -5] - - ref: matrix_thumb_bottom - shift: [-10, -10] - - ref: mirror_matrix_thumb_bottom - shift: [-10, -10] - - ref: mirror_matrix_inner_num - shift: [0, -5] - chip: - # cutout for the chip itself - - type: rectangle - size: [18, 33] - anchor: - ref: [matrix_inner_top, mirror_matrix_inner_top] - shift: [-9, -24.5] - # cutout for the cable (looks) - - type: rectangle - size: [8, 50] - anchor: - ref: [matrix_inner_top, mirror_matrix_inner_top] - shift: [-4, -24.5] - # 14mm holes for cherry switches - keyholes: - - type: keys - side: both - size: 14 - bound: false - # switchplate - switchplate: - - outer - - -keyholes - - -chip - -pcbs: - main: - outlines: - outer: - outline: outer - footprints: - mcu: - type: promicro - anchor: - rotate: 270 - ref: [matrix_inner_top, mirror_matrix_inner_top] - shift: [0, -8] diff --git a/Makefile b/Makefile index 5dab740..5744e1c 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ -all: - node src/cli.js 45treus.yaml -o output +all: node_modules + node src/cli.js 23treus.yaml -o output cp output/pcbs/main.kicad_pcb kicad/45treus/ + +node_modules: + npm ci