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

cstc40 #517

Merged
merged 18 commits into from
Oct 14, 2023
Merged

cstc40 #517

merged 18 commits into from
Oct 14, 2023

Conversation

itsvar8
Copy link
Contributor

@itsvar8 itsvar8 commented Aug 6, 2023

Keyboard was shipped with VIAL but the company refused to publish the source so i manually tracked the signle board pcb.
Reddit user u/inigmatics then found out and tested pins for cols and rows of the doughter board version of the pcb.

@xyzz
Copy link
Contributor

xyzz commented Aug 6, 2023

The two versions (daughterboard, single_pcb) need to have a different Vial UID

@itsvar8 itsvar8 requested a review from lesshonor August 9, 2023 07:04
Copy link
Contributor

@lesshonor lesshonor left a comment

Choose a reason for hiding this comment

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

Overall, you can remove a ton of duplicated boilerplate by moving shared configurations up one level. When I run qmk info -f json on these two keyboards literally the only differences are the matrix pins:

23,24c23,24
<         "cols": ["B15", "B14", "B13", "B10", "B12", "A5", "C4", "A7", "A15", "C10", "C11", "C0"],
<         "rows": ["B1", "B0", "C5", "A6"]
---
>         "cols": ["C7", "C8", "C9", "A8", "A10", "B10", "A15", "C13", "B6", "B5", "B4", "B3"],
>         "rows": ["C12", "C10", "C11", "B0"]

You can move these shared parts into cstc40/config.h and cstc40/info.json instead of duplicating it between files. See artemis/paragon for an example of how this works.

keyboards/kprepublic/cstc40/daughterboard/config.h Outdated Show resolved Hide resolved
keyboards/kprepublic/cstc40/daughterboard/daughterboard.c Outdated Show resolved Hide resolved
keyboards/kprepublic/cstc40/daughterboard/info.json Outdated Show resolved Hide resolved
keyboards/kprepublic/cstc40/daughterboard/daughterboard.c Outdated Show resolved Hide resolved
keyboards/kprepublic/cstc40/daughterboard/config.h Outdated Show resolved Hide resolved
keyboards/kprepublic/cstc40/daughterboard/config.h Outdated Show resolved Hide resolved
keyboards/kprepublic/cstc40/daughterboard/info.json Outdated Show resolved Hide resolved
keyboards/kprepublic/cstc40/daughterboard/rules.mk Outdated Show resolved Hide resolved
keyboards/kprepublic/cstc40/daughterboard/readme.md Outdated Show resolved Hide resolved
@itsvar8 itsvar8 requested a review from lesshonor August 16, 2023 01:09
@xyzz
Copy link
Contributor

xyzz commented Aug 18, 2023

This keyboard fails to build

@itsvar8
Copy link
Contributor Author

itsvar8 commented Aug 18, 2023

This keyboard fails to build

I just checked again and i can compile both the default and the vial keymap for the two board variations. What can i do?

keyboards/kprepublic/cstc40/rules.mk Outdated Show resolved Hide resolved
Copy link
Contributor

@lesshonor lesshonor left a comment

Choose a reason for hiding this comment

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

@felipecrp
Copy link
Contributor

Hi,

Just for information. We made some modifications to the firmware created by @itsvar8 and tested it with QMK. The pull request was just merged to the QMK project - qmk/qmk_firmware#22154

Regards,

@itsvar8
Copy link
Contributor Author

itsvar8 commented Oct 13, 2023

@xyzz do i need more changes to be merged?

@itsvar8
Copy link
Contributor Author

itsvar8 commented Oct 13, 2023

Hi,

Just for information. We made some modifications to the firmware created by @itsvar8 and tested it with QMK. The pull request was just merged to the QMK project - qmk/qmk_firmware#22154

Regards,

thanks for the mention!

@xyzz
Copy link
Contributor

xyzz commented Oct 14, 2023

No, it looks like it got missed in the queue, sorry about that.

@xyzz xyzz merged commit e52a698 into vial-kb:vial Oct 14, 2023
@itsvar8
Copy link
Contributor Author

itsvar8 commented Oct 14, 2023 via email

lesshonor pushed a commit to lesshonor/vial-qmk that referenced this pull request Oct 26, 2023
* Create LICENSE

* Add files via upload

* Add daughterboard version files

* Debounce set to 0 to avoid missing registration of quick keypresses

* Set debounce to 1

* Update from upstream

Fixed debug key definition on keymap, fixed optional layer indicator on alpha flagged keys code, debounce set on 2

* Fixed same UID problem and default keymaps definitions

* Fixed daughterboard VIAL keymap

* Keymap fixes and tri-layer implementation

* Structure rework

* Fix rules.mk position

* keymap fixes to pass lint check
lesshonor pushed a commit to lesshonor/vial-qmk that referenced this pull request Oct 26, 2023
* Create LICENSE

* Add files via upload

* Add daughterboard version files

* Debounce set to 0 to avoid missing registration of quick keypresses

* Set debounce to 1

* Update from upstream

Fixed debug key definition on keymap, fixed optional layer indicator on alpha flagged keys code, debounce set on 2

* Fixed same UID problem and default keymaps definitions

* Fixed daughterboard VIAL keymap

* Keymap fixes and tri-layer implementation

* Structure rework

* Fix rules.mk position

* keymap fixes to pass lint check
lesshonor pushed a commit to lesshonor/vial-qmk that referenced this pull request Nov 1, 2023
* Create LICENSE

* Add files via upload

* Add daughterboard version files

* Debounce set to 0 to avoid missing registration of quick keypresses

* Set debounce to 1

* Update from upstream

Fixed debug key definition on keymap, fixed optional layer indicator on alpha flagged keys code, debounce set on 2

* Fixed same UID problem and default keymaps definitions

* Fixed daughterboard VIAL keymap

* Keymap fixes and tri-layer implementation

* Structure rework

* Fix rules.mk position

* keymap fixes to pass lint check
zhol0777 pushed a commit to zhol0777/vial-qmk that referenced this pull request Nov 20, 2023
* Create LICENSE

* Add files via upload

* Add daughterboard version files

* Debounce set to 0 to avoid missing registration of quick keypresses

* Set debounce to 1

* Update from upstream

Fixed debug key definition on keymap, fixed optional layer indicator on alpha flagged keys code, debounce set on 2

* Fixed same UID problem and default keymaps definitions

* Fixed daughterboard VIAL keymap

* Keymap fixes and tri-layer implementation

* Structure rework

* Fix rules.mk position

* keymap fixes to pass lint check
janvladimirmostert pushed a commit to janvladimirmostert/vial-qmk-chameleon that referenced this pull request Dec 1, 2023
* Create LICENSE

* Add files via upload

* Add daughterboard version files

* Debounce set to 0 to avoid missing registration of quick keypresses

* Set debounce to 1

* Update from upstream

Fixed debug key definition on keymap, fixed optional layer indicator on alpha flagged keys code, debounce set on 2

* Fixed same UID problem and default keymaps definitions

* Fixed daughterboard VIAL keymap

* Keymap fixes and tri-layer implementation

* Structure rework

* Fix rules.mk position

* keymap fixes to pass lint check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants