diff options
| author | Ben <BenRoe@users.noreply.github.com> | 2019-02-20 05:49:22 +0100 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-02-19 20:49:22 -0800 |
| commit | 8ae83b490eb3f8ebc696c9531dff49bdfecd26ed (patch) | |
| tree | c8751499cc19c1415295b2224b324717304338b1 /docs/feature_rgb_matrix.md | |
| parent | ffb75b720fd0d4d28ed0ae99b66313c06df47183 (diff) | |
| download | qmk_firmware-8ae83b490eb3f8ebc696c9531dff49bdfecd26ed.tar.gz qmk_firmware-8ae83b490eb3f8ebc696c9531dff49bdfecd26ed.zip | |
[Docs] Fix typo in RGB Matrix Driver configuration (#5182)
* Fix #3797 firmware not compiling
If DRIVER_COUNT 1 firmware will not compile.
* Fix typo
Diffstat (limited to 'docs/feature_rgb_matrix.md')
| -rw-r--r-- | docs/feature_rgb_matrix.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/feature_rgb_matrix.md b/docs/feature_rgb_matrix.md index e955eb26f..910a70469 100644 --- a/docs/feature_rgb_matrix.md +++ b/docs/feature_rgb_matrix.md | |||
| @@ -67,7 +67,7 @@ Configure the hardware via your `config.h`: | |||
| 67 | #define DRIVER_ADDR_1 0b1010000 | 67 | #define DRIVER_ADDR_1 0b1010000 |
| 68 | #define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons. | 68 | #define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons. |
| 69 | 69 | ||
| 70 | #define DRIVER_COUNT 1 | 70 | #define DRIVER_COUNT 2 |
| 71 | #define DRIVER_1_LED_TOTAL 64 | 71 | #define DRIVER_1_LED_TOTAL 64 |
| 72 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | 72 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL |
| 73 | 73 | ||
| @@ -102,8 +102,8 @@ From this point forward the configuration is the same for all the drivers. | |||
| 102 | 102 | ||
| 103 | The format for the matrix position used in this array is `{row | (col << 4)}`. The `x` is between (inclusive) 0-224, and `y` is between (inclusive) 0-64. The easiest way to calculate these positions is: | 103 | The format for the matrix position used in this array is `{row | (col << 4)}`. The `x` is between (inclusive) 0-224, and `y` is between (inclusive) 0-64. The easiest way to calculate these positions is: |
| 104 | 104 | ||
| 105 | x = 224 / ( NUMBER_OF_ROWS - 1 ) * ROW_POSITION | 105 | x = 224 / ( NUMBER_OF_COLS - 1 ) * ROW_POSITION |
| 106 | y = 64 / (NUMBER_OF_COLS - 1 ) * COL_POSITION | 106 | y = 64 / (NUMBER_OF_ROWS - 1 ) * COL_POSITION |
| 107 | 107 | ||
| 108 | Where all variables are decimels/floats. | 108 | Where all variables are decimels/floats. |
| 109 | 109 | ||
