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

Various improvements for the AnnePro2 #16579

Merged
merged 7 commits into from
Mar 9, 2022
Merged

Conversation

Jpe230
Copy link
Contributor

@Jpe230 Jpe230 commented Mar 8, 2022

Various improvements for the AnnePro2

Description

This PR implements these improvements:

  • Add a RGB driver that utilizes the current communication protocol between the main MCU and the LED MCU (i.e. QMK animation)
  • Renamed various variables and functions name to be snake-case compliant
  • Improve readability in the default keymaps
  • Enable community layout support

My PR currently only aims to update 1 of the 3 default keymaps to enable the RGB driver, the other 2 stay with the current way of handling the RGB as they serve the purpose of showcasing in how to use the protocol.

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).

keyboards/annepro2/config_led.c Show resolved Hide resolved
keyboards/annepro2/config_led.h Outdated Show resolved Hide resolved
keyboards/annepro2/rgb_driver.c Show resolved Hide resolved
@@ -99,6 +101,8 @@ void keyboard_post_init_kb(void) {

annepro2LedGetStatus();

annepro2LedEnable();
Copy link
Member

Choose a reason for hiding this comment

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

Not a fan of the casing, but that's mostly a nitpick.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree, maybe a good PR would be to standardize the casing in this keyboard.

@drashna drashna requested a review from a team March 8, 2022 16:49
…trix only in the default layer, the other two still use Shine protocol to update the RGB
@Jpe230 Jpe230 changed the title Implement a RGB matrix driver for the AnnePro2 Various improvements for the AnnePro2 Mar 8, 2022
@tzarc tzarc merged commit dc67fd9 into qmk:master Mar 9, 2022
@Jpe230 Jpe230 deleted the annepro2_qmk_rgb branch March 9, 2022 14:52
0xcharly pushed a commit to Bastardkb/bastardkb-qmk that referenced this pull request Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants