-
Notifications
You must be signed in to change notification settings - Fork 4
/
keyboard.toml
82 lines (76 loc) · 2.33 KB
/
keyboard.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Documentation: https://haobogu.github.io/rmk/keyboard_configuration.html
[keyboard]
name = "RMK Keyboard"
product_name = "RMK Keyboard"
vendor_id = 0x4c4b
product_id = 0x4643
manufacturer = "haobo"
{% if microcontroller_family == "nrf" -%}
chip = "{{ nrf_feature }}"
{% else -%}
chip = "{{ chip }}"
{% endif -%}
{% if microcontroller_family == "esp" -%}
usb_enable = false
{% endif %}
{% if chip == "nrf52832_xxAA" -%}
usb_enable = false
{% endif %}
[matrix]
# TODO: Update input/output gpio name
# Input and output pins are mandatory
{% if microcontroller_family == "nrf" -%}
input_pins = ["P0_00", "P0_01", "P0_02", "P0_03"]
output_pins = ["P0_05", "P0_06", "P0_07"]
{% elsif microcontroller_family == "esp" -%}
input_pins = ["gpio6", "gpio7", "gpio20", "gpio21"]
output_pins = ["gpio3", "gpio4", "gpio5"]
{% elsif microcontroller_family == "rp2040" -%}
input_pins = ["PIN_6", "PIN_7", "PIN_8", "PIN_9"]
output_pins = ["PIN_19", "PIN_20", "PIN_21"]
{% elsif microcontroller_family == "stm32" -%}
input_pins = ["PD4", "PD8", "PD6", "PD7"]
output_pins = ["PD5", "PD9", "PD10"]
{% endif -%}
# WARNING: Currently row2col/col2row is set in RMK's feature gate, configs here do nothing actually
# row2col = true
[layout]
rows = 4
cols = 3
layers = 2
keymap = [
[
["Kp7", "Kp8", "Kp9"],
["Kp4", "Kp5", "Kp6"],
["Kp1", "Kp2", "Kp3"],
["Kp0", "MO(1)", "Dot"]
],
[
["_", "_", "_"],
["_", "_", "_"],
["_", "_", "_"],
["_", "_", "_"]
],
]
[light]
# All light pins are high-active by default, uncomment if you want it to be low-active
# capslock.pin = "PB2"
# capslock.low_active = true
# scrolllock.pin = "PA3"
# scrolllock.low_active = true
# Just ignore if no light pin is used for it
# numslock.pin = "PA5"
# numslock.low_active = true
[storage]
# Storage feature is enabled by default
# enabled = false
# !!! Warning: RMK uses last 2 sectors of your microcontroller's flash by default. You have to ensure that those flash space is not used.
# If you're using a bootloader which puts itself at the end of the flast, like Adafruit_nRF52_Bootloader, RMK will break the bootloader.
# Setting the `start_addr` manually to avoid this. See: https://haobogu.github.io/rmk/storage.html
{% if connection == "BLE" -%}
[ble]
enabled = true
{% elsif microcontroller_family == "nrf" -%}
[ble]
enabled = false
{% endif %}