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 dilemma max layer indicator #47

Merged

Conversation

burkfers
Copy link
Collaborator

@burkfers burkfers commented Dec 14, 2023

This PR adds the layer indicators by @ykz89 to the Max.

  • Merge @ykz89's branch upon which already-shipped firmware was based
  • Refactor for upstream-acceptability (move callbacks into keyboard level for "pristine" keymaps
  • Change indicator colors to resemble the ones on 3x5_3
    • Identical by layer number
  • Add caps lock indicator like 3x5_3
    • already present, outermost col turns red
  • Investigate right encoder mapping
    • swapped volup/dn to conventional directions
  • final testing

casuanoob and others added 19 commits September 19, 2023 00:10
set max brightness to 128 pending testing
migrate rgbmatrix layout macro to info.json
migrate other settings to info.json
add default keymap and readme
add via keymap readme
KLE and Via JSONs should not be included in qmk_firmware
Still pending testing to validate coordinates
Add copyright lines
some things were only working because "processor: RP2040" defaults to
GENERIC_PROMICRO_RP2040.
explicitly set "board": "GENERIC_RP_RP2040" instead.
correctly enable SPI0 and SPID0 instead of SPI1
Forgot to move rgb matrix animations to info.json
Didn't realise RGB_MATRIX_CENTER had an info.json mapping
Missed migrating some rules.mk options to info.json
per requested changes

Co-authored-by: Joel Challis <[email protected]>
per requested changes

Co-authored-by: Joel Challis <[email protected]>
per requested changes

Co-authored-by: Joel Challis <[email protected]>
per requested changes

Co-authored-by: Joel Challis <[email protected]>
per requested changes

Co-authored-by: Joel Challis <[email protected]>
@burkfers burkfers marked this pull request as ready for review December 15, 2023 10:15
keyboards/bastardkb/dilemma/4x6_4/info.json Outdated Show resolved Hide resolved
keyboards/bastardkb/dilemma/4x6_4/info.json Outdated Show resolved Hide resolved
keyboards/bastardkb/dilemma/4x6_4/rules.mk Outdated Show resolved Hide resolved
keyboards/bastardkb/dilemma/readme.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@casuanoob casuanoob left a comment

Choose a reason for hiding this comment

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

Some more leftovers

keyboards/bastardkb/dilemma/4x6_4/info.json Outdated Show resolved Hide resolved
keyboards/bastardkb/dilemma/4x6_4/config.h Outdated Show resolved Hide resolved
@casuanoob casuanoob self-requested a review December 15, 2023 11:17
Copy link
Collaborator

@casuanoob casuanoob left a comment

Choose a reason for hiding this comment

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

Looks good to me now

@burkfers
Copy link
Collaborator Author

Thanks casua!
Verified in hardware once more, looking good!

keyboards/bastardkb/dilemma/4x6_4/4x6_4.c Outdated Show resolved Hide resolved
keyboards/bastardkb/dilemma/4x6_4/4x6_4.c Show resolved Hide resolved
keyboards/bastardkb/dilemma/4x6_4/4x6_4.c Outdated Show resolved Hide resolved
keyboards/bastardkb/dilemma/4x6_4/4x6_4.c Outdated Show resolved Hide resolved
keyboards/bastardkb/dilemma/4x6_4/4x6_4.c Outdated Show resolved Hide resolved
keyboards/bastardkb/dilemma/4x6_4/4x6_4.c Outdated Show resolved Hide resolved
keyboards/bastardkb/dilemma/4x6_4/4x6_4.c Outdated Show resolved Hide resolved
keyboards/bastardkb/dilemma/4x6_4/4x6_4.c Outdated Show resolved Hide resolved
keyboards/bastardkb/dilemma/4x6_4/4x6_4.c Outdated Show resolved Hide resolved
keyboards/bastardkb/dilemma/4x6_4/4x6_4.c Outdated Show resolved Hide resolved
keyboards/bastardkb/dilemma/4x6_4/4x6_4.c Outdated Show resolved Hide resolved
keyboards/bastardkb/dilemma/4x6_4/4x6_4.c Show resolved Hide resolved
keyboards/bastardkb/dilemma/4x6_4/4x6_4.c Show resolved Hide resolved
keyboards/bastardkb/dilemma/4x6_4/4x6_4.c Outdated Show resolved Hide resolved
@burkfers
Copy link
Collaborator Author

burkfers commented Dec 17, 2023

The brightness increases for layer and capslock indicators are now configurable from the keymap level with defines.

Todo:

  • Change keyboard-level readme to document the two new defines

@burkfers burkfers force-pushed the bk_dilemma_4x6_4_layer_indicator branch from 501c89a to 7b949b7 Compare December 23, 2023 18:04
@0xcharly
Copy link
Collaborator

Looks like this needs to be rebased. I've updated bkb-master to qmk/master to put you on the latest version.

@burkfers
Copy link
Collaborator Author

Freshly rebased.

Instead of rewriting shutdown_user() to fit the breaking change, I've opted to simply remove it to match @casuanoob 's new Dilemma 3x5 implementation that's already been accepted into qmk:develop.

Behavior is correct in hardware, but please have a quick look to verify I didn't resolve a conflict in the wrong direction again.

@0xcharly
Copy link
Collaborator

Freshly rebased.

I think you need to rebase against bkb-master. It looks like it's currently based on qmk:master and conflicts with bkb-master.

@burkfers
Copy link
Collaborator Author

Huh, I'm sure I had rebased it on top of bkb-master, which I had freshly fetched and reset to match your rebase.

The foot of this PR also says it's able to merge cleanly into the base branch.

@0xcharly
Copy link
Collaborator

Huh, I'm sure I had rebased it on top of bkb-master, which I had freshly fetched and reset to match your rebase.

The foot of this PR also says it's able to merge cleanly into the base branch.

Hmm, this is not what I'm seeing…

Screenshot 2023-12-26 at 23 52 46

@0xcharly 0xcharly merged commit aad1a32 into Bastardkb:bkb-master Dec 26, 2023
2 checks passed
@burkfers burkfers deleted the bk_dilemma_4x6_4_layer_indicator branch January 30, 2024 09:51
0xcharly pushed a commit that referenced this pull request Apr 8, 2024
* tentatively add dilemma 4x6_4 WIP untested

* Add dilemma 4x6_4 WIP

set max brightness to 128 pending testing
migrate rgbmatrix layout macro to info.json
migrate other settings to info.json
add default keymap and readme
add via keymap readme

* 4x6_4 Remove files that shouldn't be in main

KLE and Via JSONs should not be included in qmk_firmware

* 4x6_4 Add RGBMATRIX coordinates in info.json WIP

Still pending testing to validate coordinates
Add copyright lines

* 4x6_4 Change RGB matrix centre

* 4x6_4 update rgb flags for outer columns

* 4x6_4 add swap_hands config from Drashna

* 4x6_4 explicitly set some defaults

some things were only working because "processor: RP2040" defaults to
GENERIC_PROMICRO_RP2040.
explicitly set "board": "GENERIC_RP_RP2040" instead.
correctly enable SPI0 and SPID0 instead of SPI1

* Update dilemma/readme.md

* 4x6_4 migrate more items to info.json

Forgot to move rgb matrix animations to info.json
Didn't realise RGB_MATRIX_CENTER had an info.json mapping
Missed migrating some rules.mk options to info.json

* Update keyboards/bastardkb/dilemma/4x6_4/rules.mk

per requested changes

Co-authored-by: Joel Challis <[email protected]>

* Update keyboards/bastardkb/dilemma/4x6_4/rules.mk

per requested changes

Co-authored-by: Joel Challis <[email protected]>

* Update keyboards/bastardkb/dilemma/4x6_4/keymaps/via/config.h

per requested changes

Co-authored-by: Joel Challis <[email protected]>

* Update keyboards/bastardkb/dilemma/4x6_4/keymaps/via/keymap.c

per requested changes

Co-authored-by: Joel Challis <[email protected]>

* Update keyboards/bastardkb/dilemma/4x6_4/config.h

per requested changes

Co-authored-by: Joel Challis <[email protected]>

* 4x6_4/config.h formatting change per review request

Co-authored-by: Drashna Jaelre <[email protected]>

* 4x6_4/info.json formatting change per review request

Co-authored-by: Drashna Jaelre <[email protected]>

* Add layer indicators

* Use predefined rgb colors for layers

* Refactor layer indicators from keymap to keyboard

* swap encoder volume directions for CW=volup

* Revert wrong conflict solutions following review

* Update keyboards/bastardkb/dilemma/4x6_4/info.json

* Update keyboards/bastardkb/dilemma/4x6_4/config.h

* Update keyboards/bastardkb/dilemma/4x6_4/keymaps/default/readme.md

* Update keyboards/bastardkb/dilemma/4x6_4/config.h

* Apply suggested changes from code review

* Apply suggested changes from code review

* Break the brightness interval out into defines for configurability from keymap

* Formatting

* Add documentation for indicator brightness boosts

* narrow scope of kb-internal function

* fix type of counting variable

* remove unneccessary condition

* Remove shutdown_user

Instead of rewriting for breaking change, simply removed akin to new 3x5_3 on qmk:develop

* Formatting

---------

Co-authored-by: casuanoob <[email protected]>
Co-authored-by: casuanoob <[email protected]>
Co-authored-by: Joel Challis <[email protected]>
Co-authored-by: Drashna Jaelre <[email protected]>
Co-authored-by: Ying Kun Zhan <[email protected]>
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.

4 participants