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 dual-direction diode capability for hbcp #8795

Merged
merged 2 commits into from
Apr 19, 2020

Conversation

hineybush
Copy link
Contributor

@hineybush hineybush commented Apr 14, 2020

Description

So my PCB manufacturer messed up. Instead of common cathode diodes like I specced (MMBD4148CC) they used dual-direction (MMBD4148SE). This posed an issue as my original COL2ROW-only firmware would not work, understandably. @nooges from Keeb.io suggested that I look at PR #8160 and try these adjustments out. I built based on that PR and the PCB with the wrong diodes worked perfectly. I added the changes to an hbcp-specific matrix.c and adjusted the configs with @drashna's help.

I'm adding the changes here because 1. it won't affect the "correct" HBCP PCBs with common cathode diode packages and 2. anyone building their own firmware from here, or updated VIA builds, won't be done by me - so the changes should be here for anyone to access. Once #8160 is merged, I will adjust the code within hbcp accordingly.

MMBD4148CC/SE datasheet here: https://www.onsemi.com/pub/Collateral/MMBD4148SE-D.pdf

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

@drashna drashna requested a review from a team April 14, 2020 00:15
keyboards/hineybush/hbcp/config.h Outdated Show resolved Hide resolved
keyboards/hineybush/hbcp/rules.mk Outdated Show resolved Hide resolved
keyboards/hineybush/hbcp/matrix.c Outdated Show resolved Hide resolved
keyboards/hineybush/hbcp/matrix.c Outdated Show resolved Hide resolved
keyboards/hineybush/hbcp/matrix.c Outdated Show resolved Hide resolved
keyboards/hineybush/hbcp/matrix.c Outdated Show resolved Hide resolved
keyboards/hineybush/hbcp/matrix.c Outdated Show resolved Hide resolved
@zvecr zvecr requested a review from a team April 14, 2020 14:58
@zvecr
Copy link
Member

zvecr commented Apr 14, 2020

it won't affect the "correct" HBCP PCBs with common cathode diode packages

As a passing comment, technically it will change scan speed which for some users might be less than ideal.

@zvecr zvecr requested a review from a team April 14, 2020 20:11
@drashna
Copy link
Member

drashna commented Apr 19, 2020

Ah, I see that @zvecr helped you get the lite custom matrix stuff implemented here. Good! :)

@drashna drashna changed the title add dual-direction diode capability for hbcp [Keyboard] add dual-direction diode capability for hbcp Apr 19, 2020
@drashna drashna merged commit f3595f6 into qmk:master Apr 19, 2020
kylekuj pushed a commit to kylekuj/qmk_firmware that referenced this pull request Apr 21, 2020
* add dual-direction diode capability

* update per PR requests

Co-authored-by: hineybush <hineybushkeyboards@gmail.com>
violet-fish pushed a commit to violet-fish/qmk_firmware that referenced this pull request May 3, 2020
* add dual-direction diode capability

* update per PR requests

Co-authored-by: hineybush <hineybushkeyboards@gmail.com>
bitherder pushed a commit to bitherder/qmk_firmware that referenced this pull request May 15, 2020
* add dual-direction diode capability

* update per PR requests

Co-authored-by: hineybush <hineybushkeyboards@gmail.com>
sowbug pushed a commit to sowbug/qmk_firmware that referenced this pull request May 24, 2020
* add dual-direction diode capability

* update per PR requests

Co-authored-by: hineybush <hineybushkeyboards@gmail.com>
turky pushed a commit to turky/qmk_firmware that referenced this pull request Jun 13, 2020
* add dual-direction diode capability

* update per PR requests

Co-authored-by: hineybush <hineybushkeyboards@gmail.com>
jakobaa pushed a commit to jakobaa/qmk_firmware that referenced this pull request Jul 7, 2020
* add dual-direction diode capability

* update per PR requests

Co-authored-by: hineybush <hineybushkeyboards@gmail.com>
sjmacneil pushed a commit to sjmacneil/qmk_firmware that referenced this pull request Feb 19, 2021
* add dual-direction diode capability

* update per PR requests

Co-authored-by: hineybush <hineybushkeyboards@gmail.com>
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