Skip to content
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

Closed
wants to merge 13 commits into from
Closed

[Keyboard] Add fpad #20200

wants to merge 13 commits into from

Conversation

td2sk
Copy link

@td2sk td2sk commented Mar 21, 2023

Description

Add open source macro keyboard fpad

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout/userspace (addition or update)
  • Documentation

Issues Fixed or Closed by This PR

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

@github-actions github-actions bot added keyboard keymap via Adds via keymap and/or updates keyboard for via support labels Mar 21, 2023
@github-actions
Copy link

Thank you for your contribution!
This pull request has been automatically marked as stale because it has not had activity in the last 45 days. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, or re-open when it's ready.
For maintainers: Please label with bug, awaiting review, breaking_change, in progress, or on hold to prevent the issue from being re-flagged.

@github-actions github-actions bot added stale Issues or pull requests that have become inactive without resolution. and removed stale Issues or pull requests that have become inactive without resolution. labels Jun 13, 2023
@github-actions
Copy link

github-actions bot commented Aug 1, 2023

Thank you for your contribution!
This pull request has been automatically marked as stale because it has not had activity in the last 45 days. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, or re-open when it's ready.
For maintainers: Please label with bug, awaiting review, breaking_change, in progress, or on hold to prevent the issue from being re-flagged.

@github-actions github-actions bot added the stale Issues or pull requests that have become inactive without resolution. label Aug 1, 2023
Copy link
Member

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

@github-actions github-actions bot removed the stale Issues or pull requests that have become inactive without resolution. label Aug 13, 2023
keyboards/td2sk/fpad/info.json Outdated Show resolved Hide resolved
@@ -0,0 +1 @@
LTO_ENABLE = yes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

migrate to info.json

Suggested change
LTO_ENABLE = yes
# File is intentionally blank

"joystick": true,
"nkro": true,
"rgb_matrix": true
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

migrated from rules.mk

Suggested change
},
},
"build": {
"lto": true
},

Comment on lines +12 to +34
"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",
Copy link
Contributor

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

Suggested change
"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,
Copy link
Contributor

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

Suggested change
"encoder_map": true,

@@ -0,0 +1,20 @@
ifeq ($(strip $(ENCODER_ENABLE)), yes)
Copy link
Member

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

Copy link
Author

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.

keyboards/td2sk/fpad/keymaps/via/keymap.c Outdated Show resolved Hide resolved
keyboards/td2sk/fpad/keymaps/via/keymap.c Outdated Show resolved Hide resolved

ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
RGB_MATRIX_DRIVER = custom
SRC += ws2812.c drivers/is31fl3208.c drivers/xl9555.c
Copy link
Member

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?

Copy link
Author

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.

@github-actions
Copy link

Thank you for your contribution!
This pull request has been automatically marked as stale because it has not had activity in the last 45 days. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, or re-open when it's ready.
For maintainers: Please label with bug, awaiting review, breaking_change, in progress, or on hold to prevent the issue from being re-flagged.

@github-actions github-actions bot added the stale Issues or pull requests that have become inactive without resolution. label Oct 15, 2023
td2sk and others added 3 commits October 19, 2023 22:45
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>
@github-actions github-actions bot removed the stale Issues or pull requests that have become inactive without resolution. label Oct 20, 2023
Copy link

github-actions bot commented Dec 4, 2023

Thank you for your contribution!
This pull request has been automatically marked as stale because it has not had activity in the last 45 days. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, or re-open when it's ready.
For maintainers: Please label with bug, awaiting review, breaking_change, in progress, or on hold to prevent the issue from being re-flagged.

@github-actions github-actions bot added the stale Issues or pull requests that have become inactive without resolution. label Dec 4, 2023
Copy link

github-actions bot commented Jan 4, 2024

Thank you for your contribution!
This pull request has been automatically closed because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, or re-open when it's ready.
// [stale-action-closed]

@github-actions github-actions bot closed this Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keyboard keymap stale Issues or pull requests that have become inactive without resolution. via Adds via keymap and/or updates keyboard for via support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants