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 nuphy air75 v2 keyboard #22751

Open
wants to merge 34 commits into
base: master
Choose a base branch
from

Conversation

nuphy-src
Copy link

@nuphy-src nuphy-src commented Dec 25, 2023

Description

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 Dec 25, 2023
Copy link
Contributor

@dunk2k dunk2k left a comment

Choose a reason for hiding this comment

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

Add Community Layout support

keyboards/nuphy/air75_v2/ansi/info.json Outdated Show resolved Hide resolved
keyboards/nuphy/air75_v2/ansi/keymaps/default/keymap.c Outdated Show resolved Hide resolved
keyboards/nuphy/air75_v2/ansi/keymaps/via/keymap.c Outdated Show resolved Hide resolved
keyboards/nuphy/air75_v2/ansi/ansi.c Outdated Show resolved Hide resolved
keyboards/nuphy/air75_v2/ansi/ansi.c Outdated Show resolved Hide resolved
keyboards/nuphy/air75_v2/ansi/ansi.c Outdated Show resolved Hide resolved
keyboards/nuphy/air75_v2/ansi/ansi.c Outdated Show resolved Hide resolved
keyboards/nuphy/air75_v2/ansi/ansi.c Show resolved Hide resolved
keyboards/nuphy/air75_v2/ansi/side_driver.c Show resolved Hide resolved
keyboards/nuphy/air75_v2/ansi/config.h Outdated Show resolved Hide resolved
keyboards/nuphy/air75_v2/ansi/info.json Show resolved Hide resolved
@RDhar
Copy link

RDhar commented Jan 2, 2024

Hi @nuphy-src, if you wouldn't mind, could you please resolve/comment on @adophoxia, @dunk2k and @drashna's (code) suggestions so it's easier to follow progress on this PR?

@nuphy-src
Copy link
Author

Hello everyone, @dunk2k @RDhar @drashna @adophoxia ,I have adjusted the code according to your suggestions, please kindly approve the modified content, thank you

@nuphy-src
Copy link
Author

Hi @nuphy-src, if you wouldn't mind, could you please resolve/comment on @adophoxia, @dunk2k and @drashna's (code) suggestions so it's easier to follow progress on this PR?

Hi rdhar, I have adjusted the code according to your suggestions. please kindly approve the modified content, thank you

@jincao1
Copy link

jincao1 commented Jan 7, 2024

@nuphy-src In your latest commit the key codes for KC_LGUI, KC_LALT and KC_RGUI are in the wrong place in the windows layer. It was previously correct but looks like you made them match the Mac layer. The Mac layer is corrected with the wrong key placements before but in the process you broke the Windows layer. FYI.

@nuphy-src
Copy link
Author

@nuphy-src In your latest commit the key codes for KC_LGUI, KC_LALT and KC_RGUI are in the wrong place in the windows layer. It was previously correct but looks like you made them match the Mac layer. The Mac layer is corrected with the wrong key placements before but in the process you broke the Windows layer. FYI.

Thanks for your reminding, I will correct this problem immediately

@DP19
Copy link

DP19 commented Jan 7, 2024

@nuphy-src FYI a few others and I have built and run this version of the firmware and the media controls don't work in wireless modes in its current form.

We've made various changes to get it working but none of us are super well versed in C /qmk so there may be better ways to fix it

@nuphy-src
Copy link
Author

@nuphy-src FYI a few others and I have built and run this version of the firmware and the media controls don't work in wireless modes in its current form.

We've made various changes to get it working but none of us are super well versed in C /qmk so there may be better ways to fix it

May I ask which key does not function? KC_MCTL?

@DP19
Copy link

DP19 commented Jan 7, 2024

@nuphy-src FYI a few others and I have built and run this version of the firmware and the media controls don't work in wireless modes in its current form.

We've made various changes to get it working but none of us are super well versed in C /qmk so there may be better ways to fix it

May I ask which key does not function? KC_MCTL?

IIRC it's everything in the function row that begin with KC_

At least on MAC. @jincao1 can probably speak to Windows

@nuphy-src
Copy link
Author

@nuphy-src FYI a few others and I have built and run this version of the firmware and the media controls don't work in wireless modes in its current form.

We've made various changes to get it working but none of us are super well versed in C /qmk so there may be better ways to fix it

May I ask which key does not function? KC_MCTL?

IIRC it's everything in the function row that begin with KC_

At least on MAC. @jincao1 can probably speak to Windows

About the problem: The multimedia button does not function in mac system. I'll test the side again later. Thank you

@RDhar
Copy link

RDhar commented Jan 7, 2024

As @DP19 mentioned, here's collection of ongoing QMK firmware forks for Nuphy keyboards maintained by @zhogov.

It might be worth accepting input at this early stage from positively-active contributors like @jincao1 and @edykim. Really embracing the open-source culture to share the best of community development.

These contributors and more are already present on your Discord's Custom firmware on Air75v2 channel, if you'd like to continue the conversation there.

@nuphy-src
Copy link
Author

As @DP19 mentioned, here's collection of ongoing QMK firmware forks for Nuphy keyboards maintained by @zhogov.

It might be worth accepting input at this early stage from positively-active contributors like @jincao1 and @edykim. Really embracing the open-source culture to share the best of community development.

These contributors and more are already present on your Discord's Custom firmware on Air75v2 channel, if you'd like to continue the conversation there.

Yes, I am also happy to share my code here, and welcome your suggestions, Thanks

@jincao1
Copy link

jincao1 commented Jan 7, 2024

I believe the issue with the F modifiers are that none of them work in RF because the current implementation with core QMK does not send the system and consumer reports when in RF mode.

I wrote a simple RF driver to handle that within the QMK lifecycle. Keep in mind I'm not a C developer.

Feel free to look at these commits I made in the diff below relating to the RF driver and attempts at addressing keys that may get stuck/lost in RF mode.

jincao1/qmk_firmware@2553cb6...faff038

You're welcome to build my branch to test and to cherry pick my changes in. I won't be submitting any PRs as the commits contain customization's I want which your users may not want.

@nuphy-src
Copy link
Author

I believe the issue with the F modifiers are that none of them work in RF because the current implementation with core QMK does not send the system and consumer reports when in RF mode.

I wrote a simple RF driver to handle that within the QMK lifecycle. Keep in mind I'm not a C developer.

Feel free to look at these commits I made in the diff below relating to the RF driver and attempts at addressing keys that may get stuck/lost in RF mode.

jincao1/qmk_firmware@2553cb6...faff038

You're welcome to build my branch to test and to cherry pick my changes in. I won't be submitting any PRs as the commits contain customization's I want which your users may not want.

Hi Thank you very much for your suggestions and code, your code is of great help to me, I will refer to it to modify my code.

@nuphy-src
Copy link
Author

Thank you very much for your suggestion @DP19 @jincao1 @RDhar ,and I have modified my code with reference to your code, @jincao1 which is very helpful for me to solve this problem. Thanks

uint8_t rf_state;
uint8_t rf_charge;
uint8_t rf_led;
uint8_t rf_baterry;
Copy link

Choose a reason for hiding this comment

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

Spelling s/baterry/battery/

Choose a reason for hiding this comment

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

I had previously suggested this same fix in this 2024-04-26 comment. However, for some reason, @nuphy-src marked that thread as resolved without fixing it. I just posted this comment asking them to unresolve my 16 unaddressed comments.

Copy link

Choose a reason for hiding this comment

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

np, I'll leave this here until your previous (much more comprehensive) review is reinstated, so that it's clear there's still work to be done.

Copy link

Choose a reason for hiding this comment

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

In the interests of moving this forward, I've submitted a PR against the @nuphy-src branch that fixes all the spelling errors etc that I could find, and fixes the style conventions.

update

update

update

reset submodule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keyboard keymap via Adds via keymap and/or updates keyboard for via support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet