scrollwheel/rotary

This commit is contained in:
daniel
2023-06-13 22:52:57 +02:00
parent 687cb13250
commit 345a961789

View File

@@ -9,6 +9,8 @@ units:
mcu_height: 34 mcu_height: 34
mcu_width: 18 mcu_width: 18
mcu_padding: 2 mcu_padding: 2
scrollwheel_width: 17
scrollwheel_height: 14
points: points:
zones: zones:
matrix: matrix:
@@ -108,10 +110,12 @@ points:
columns: columns:
scrollwheel: scrollwheel:
key: key:
tags: [switch,scrollwheel] tags: [scrollwheel]
rotate: -15 rotate: -15
shift: [px+padding, -3] shift: [px, -4]
column_net: col5 column_net: col5
width: scrollwheel_width
height: scrollwheel_height
rows: rows:
scrollwheel: scrollwheel:
row_net: row4 row_net: row4
@@ -165,8 +169,10 @@ outlines:
shift: [0.5px, 0.5py] shift: [0.5px, 0.5py]
- ref: matrix_inner_num - ref: matrix_inner_num
shift: [0.5px+mcu_padding+mcu_width, 0.5py] shift: [0.5px+mcu_padding+mcu_width, 0.5py]
- ref: matrix_inner_bottom - ref: scrollwheel_scrollwheel_scrollwheel
shift: [0.5px+mcu_padding+mcu_width, -0.5py] shift: [0.5scrollwheel_width+padding, 0.5scrollwheel_height+padding]
#- ref: matrix_inner_bottom
# shift: [0.5px+mcu_padding+mcu_width, -0.5py]
- ref: thumbs_space_cluster - ref: thumbs_space_cluster
shift: [0.5px, -0.5py] shift: [0.5px, -0.5py]
- ref: thumbs_space_cluster - ref: thumbs_space_cluster
@@ -193,11 +199,39 @@ pcbs:
diode: diode:
# TODO diode without throughhole? # TODO diode without throughhole?
what: diode what: diode
where: switch where: [switch]
params: params:
from: "{{colrow}}" from: "{{colrow}}"
to: "{{row_net}}" to: "{{row_net}}"
adjust.shift: [0, -5] adjust.shift: [0, -5]
scrollwheel:
what: scrollwheel
where: [scrollwheel]
params:
from: col5
to: row4
A: ENCB
B: GND
C: ENCA
D: undefined
scroll_diode:
# TODO diode without throughhole
what: diode
where: [scrollwheel]
params:
from: "{{colrow}}"
to: "{{row_net}}"
adjust.shift: [-3, 10]
rotary:
what: rotary
where: [scrollwheel]
params:
from: col5
to: row4
A: ENCA
B: ENCB
C: GND
adjust.rotate: 90
promicro: promicro:
what: promicro what: promicro
where: mcu where: mcu