-
-
Notifications
You must be signed in to change notification settings - Fork 39.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Keyboard] Add fpad #20200
[Keyboard] Add fpad #20200
Conversation
- To support custom encoders, copy quantum/encoder.c to the keyboard-specific directory without modification - Following commits will update this file
Thank you for your contribution! |
Thank you for your contribution! |
keyboards/td2sk/fpad/encoder.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks to mostly just be a copy of the encoder code from core.
It really shouldn't be copied like this, as this is not maintainable.
Also: #21548
@@ -0,0 +1 @@ | |||
LTO_ENABLE = yes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
migrate to info.json
LTO_ENABLE = yes | |
# File is intentionally blank |
"joystick": true, | ||
"nkro": true, | ||
"rgb_matrix": true | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
migrated from rules.mk
}, | |
}, | |
"build": { | |
"lto": true | |
}, |
"bootloader": "caterina", | ||
"diode_direction": "COL2ROW", | ||
"features": { | ||
"bootmagic": true, | ||
"command": false, | ||
"console": false, | ||
"extrakey": true, | ||
"mousekey": true, | ||
"encoder": true, | ||
"encoder_map": true, | ||
"joystick": true, | ||
"nkro": true, | ||
"rgb_matrix": true | ||
}, | ||
"matrix_pins": { | ||
"cols": ["D3", "D2", "D4", "C6", "NO_PIN"], | ||
"rows": ["NO_PIN", "D7", "E6", "B4", "B5"] | ||
}, | ||
"matrix_size": { | ||
"cols": 5, | ||
"rows": 5 | ||
}, | ||
"processor": "atmega32u4", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace processor
and bootloader
with development_board
"bootloader": "caterina", | |
"diode_direction": "COL2ROW", | |
"features": { | |
"bootmagic": true, | |
"command": false, | |
"console": false, | |
"extrakey": true, | |
"mousekey": true, | |
"encoder": true, | |
"encoder_map": true, | |
"joystick": true, | |
"nkro": true, | |
"rgb_matrix": true | |
}, | |
"matrix_pins": { | |
"cols": ["D3", "D2", "D4", "C6", "NO_PIN"], | |
"rows": ["NO_PIN", "D7", "E6", "B4", "B5"] | |
}, | |
"matrix_size": { | |
"cols": 5, | |
"rows": 5 | |
}, | |
"processor": "atmega32u4", | |
"development_board": "promicro", | |
"diode_direction": "COL2ROW", | |
"features": { | |
"bootmagic": true, | |
"command": false, | |
"console": false, | |
"extrakey": true, | |
"mousekey": true, | |
"encoder": true, | |
"encoder_map": true, | |
"joystick": true, | |
"nkro": true, | |
"rgb_matrix": true | |
}, | |
"matrix_pins": { | |
"cols": ["D3", "D2", "D4", "C6", "NO_PIN"], | |
"rows": ["NO_PIN", "D7", "E6", "B4", "B5"] | |
}, | |
"matrix_size": { | |
"cols": 5, | |
"rows": 5 | |
}, |
"extrakey": true, | ||
"mousekey": true, | ||
"encoder": true, | ||
"encoder_map": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this setting be enabled in rules.mk
for each keymap
"encoder_map": true, |
@@ -0,0 +1,20 @@ | |||
ifeq ($(strip $(ENCODER_ENABLE)), yes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as a heads up, this probably won't be accepted in it's current form, due to the custom/duplicated encoder code.
Namely, there is a pending change to add support for custom encoder support, and that should (much) better handle this sort of scenario:
#21548
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand. I will fix this pull request after the custom encoder feature is merged into QMK.
|
||
ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes) | ||
RGB_MATRIX_DRIVER = custom | ||
SRC += ws2812.c drivers/is31fl3208.c drivers/xl9555.c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait, is the rgb matrix driver also using the xl9555 driver?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
XL9555 is used for the rotary encoder. It is my mistake to enable it for the RGB matrix. I'll fix this.
Thank you for your contribution! |
Co-authored-by: Duncan Sutherland <dunk2k_2000@hotmail.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Thank you for your contribution! |
Thank you for your contribution! |
Description
Add open source macro keyboard fpad
Types of Changes
Issues Fixed or Closed by This PR
Checklist