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

Add Ploopyco functions for host state control #23953

Merged
merged 5 commits into from
Oct 11, 2024
Merged

Conversation

t4corun
Copy link
Contributor

@t4corun t4corun commented Jun 18, 2024

Addressed gap in Ploopy Nano where drag scroll and dpi cannot be accessed at the userspace level. User can now implement Host State Control in their keymap

Description

Extends on the current code base. Drag scroll variable and dpi cycling logic moved into functions so they can be called at the userspace level.

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

N/A

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 chano the documentation.ge 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).

- Functionality is opt-in via PLOOPY_HOST_LED_CONTROL
- Pressing Num lock cycles DPI
- Pressing Scroll lock enables Drag Scroll
- Enters bootloader when Num, Caps, and Scroll lock are on at the
same time
- Updated documentation
- Removed Host State control code from keyboard level
- Will leave it up to the user to implement it at the user level
@t4corun t4corun changed the title Enabling Host State Control for Ploopyco Adding Ploopyco functions so Host State Control can be implemented for Ploopy Nano Jun 19, 2024
@t4corun
Copy link
Contributor Author

t4corun commented Jun 19, 2024

Revised PR based on @obosob's Discord comment. Removed keyboard level Host State control. Leave it to the user to implement it at the keymap. Tested on my Ploopy Nano.

The previous commit still has the Host state control if that is still desired.

@drashna
Copy link
Member

drashna commented Jun 19, 2024

Revised PR based on obosob's Discord comment. Removed keyboard level Host State control. Leave it to the user to implement it at the keymap. Tested on my Ploopy Nano.

Agree with obosob. This is something best left implemented at the user level.

However the helper functions are a good idea and useful.

@drashna drashna requested a review from a team June 19, 2024 15:25
@t4corun
Copy link
Contributor Author

t4corun commented Jun 19, 2024

Thanks, but credit to @obosob for the idea. I was originally trying to call the ploopyco DRAG_SCROLL from my other QMK boards and was struggling

@t4corun
Copy link
Contributor Author

t4corun commented Aug 29, 2024

@drashna Maybe I made a mistake when I created this PR, was I supposed to submit this to qmk:develop? I think this wasn't included in the 0.26 release. Thanks

@drashna
Copy link
Member

drashna commented Aug 30, 2024

It should probably go to develop, yeah. But given the parts that it is touching... it may be fine hitting master directly.

@t4corun t4corun changed the base branch from master to develop September 10, 2024 03:28
@t4corun
Copy link
Contributor Author

t4corun commented Sep 10, 2024

Updated the PR to hit develop instead. Will keep this in mind for next time. Thanks again

keyboards/ploopyco/ploopyco.c Outdated Show resolved Hide resolved
keyboards/ploopyco/ploopyco.c Outdated Show resolved Hide resolved
keyboards/ploopyco/ploopyco.c Outdated Show resolved Hide resolved
keyboards/ploopyco/readme.md Outdated Show resolved Hide resolved
keyboards/ploopyco/ploopyco.h Outdated Show resolved Hide resolved
- removing whitespace and adding newline at EOF for code
consistency
keyboards/ploopyco/readme.md Outdated Show resolved Hide resolved
- Per PR Comments updated markdown table formatting removing
the formatting the vscode extension puts in
@t4corun t4corun requested a review from fauxpark September 22, 2024 19:29
@drashna drashna changed the title Adding Ploopyco functions so Host State Control can be implemented for Ploopy Nano Add Ploopyco functions for host state control Oct 11, 2024
@drashna drashna merged commit 27d68ef into qmk:develop Oct 11, 2024
3 checks passed
ilham-agustiawan pushed a commit to ilham-agustiawan/qmk_firmware that referenced this pull request Nov 30, 2024
smallketchup82 pushed a commit to smallketchup82/qmk_firmware that referenced this pull request Dec 1, 2024
jlaptavi pushed a commit to jlaptavi/qmk_firmware that referenced this pull request Dec 3, 2024
DmNosachev pushed a commit to DmNosachev/qmk_firmware that referenced this pull request Dec 7, 2024
SyrupSplashin pushed a commit to SyrupSplashin/qmk_firmware that referenced this pull request Dec 10, 2024
LeonMusCoden pushed a commit to LeonMusCoden/qmk_firmware that referenced this pull request Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants