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

[Docs] Fix typo in RGB Matrix Driver configuration #5182

Merged
merged 2 commits into from
Feb 20, 2019
Merged

[Docs] Fix typo in RGB Matrix Driver configuration #5182

merged 2 commits into from
Feb 20, 2019

Conversation

BenRoe
Copy link
Contributor

@BenRoe BenRoe commented Feb 19, 2019

Commit 1

Fix compiling problems with the default settings in the documentation #3797.
Firmware does not compile with DRIVER_COUNT 1

Commit 2

The calculation for the matrix position is wrong

   x = 224 / ( NUMBER_OF_ROWS - 1 ) * ROW_POSITION
   y = 64 / (NUMBER_OF_COLS - 1 ) * COL_POSITION

NUMBER_OF_ROWS and NUMBER_OF_COLS should be switched

    x = 224 / ( NUMBER_OF_COLS - 1 ) * ROW_POSITION
    y = 64 / (NUMBER_OF_ROWS - 1 ) * COL_POSITION

In qmk_firmware/keyboards/planck/light/light.c
x = 224 / ( NUMBER_OF_COLS - 1 )
20.36 = 224/ (12-1)

    ...
    {{0|(0<<4)},   {20.36*0, 21.33*0}, 1},
    ...

Description

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

If DRIVER_COUNT 1 firmware will not compile.
@drashna
Copy link
Member

drashna commented Feb 20, 2019

I'm not 100% about this stuff, so I've flagged those that would be.

@drashna
Copy link
Member

drashna commented Feb 20, 2019

Awesome, thanks!

@drashna drashna merged commit 8ae83b4 into qmk:master Feb 20, 2019
zer09 pushed a commit to zer09/qmk_firmware that referenced this pull request Mar 2, 2019
* Fix qmk#3797 firmware not compiling

If DRIVER_COUNT 1 firmware will not compile.

* Fix typo
slugger7 pushed a commit to slugger7/qmk_firmware that referenced this pull request Mar 7, 2019
* Fix qmk#3797 firmware not compiling

If DRIVER_COUNT 1 firmware will not compile.

* Fix typo
slugger7 pushed a commit to slugger7/qmk_firmware that referenced this pull request Apr 3, 2019
* Fix qmk#3797 firmware not compiling

If DRIVER_COUNT 1 firmware will not compile.

* Fix typo
dlhextall pushed a commit to dlhextall/qmk_firmware that referenced this pull request May 24, 2019
* Fix qmk#3797 firmware not compiling

If DRIVER_COUNT 1 firmware will not compile.

* Fix typo
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