-
-
Notifications
You must be signed in to change notification settings - Fork 40.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Keyboard] ADM42: configuration refactoring
- Loading branch information
Showing
6 changed files
with
102 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* Copyright 2020-2022 Lorenzo Leonini | ||
* SPDX-License-Identifier: GPL-2.0-only | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#define MATRIX_COL_PINS { C6, B6, B5, B4, D7, D6, F0, F1, F4, F5, F6, F7 } | ||
#define MATRIX_ROW_PINS { C7, D5, D3, D2 } | ||
|
||
#define QMK_LED E6 | ||
|
||
#define RGB_DI_PIN B7 | ||
|
||
#define DRIVER_LED_TOTAL 42 | ||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 170 | ||
#define RGB_MATRIX_CENTER { 112, 32 } | ||
#define RGB_DISABLE_WHEN_USB_SUSPENDED | ||
#define RGB_MATRIX_LED_PROCESS_LIMIT 21 | ||
#define RGB_MATRIX_LED_FLUSH_LIMIT 16 | ||
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT | ||
#define RGB_MATRIX_TYPING_HEATMAP_DECREASE_DELAY_MS 20 | ||
#define RGB_MATRIX_KEYPRESSES | ||
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
#define RGB_MATRIX_SAT_STEP 24 | ||
#define RGB_MATRIX_HUE_STEP 8 | ||
#define RGB_MATRIX_VAL_STEP 16 | ||
#define RGB_MATRIX_SPD_STEP 16 | ||
|
||
#define ENABLE_RGB_MATRIX_BREATHING | ||
#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT | ||
#define ENABLE_RGBLIGHT_MODE_STATIC_LIGHT | ||
#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN | ||
#define ENABLE_RGB_MATRIX_PIXEL_FRACTAL | ||
#define ENABLE_RGB_MATRIX_TYPING_HEATMAP | ||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE | ||
#define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS | ||
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN | ||
#define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL | ||
#define ENABLE_RGB_MATRIX_PIXEL_RAIN | ||
#define ENABLE_RGB_MATRIX_DIGITAL_RAIN | ||
#define ENABLE_RGB_MATRIX_BAND_VAL | ||
#define ENABLE_RGB_MATRIX_SPLASH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* Copyright 2020-2022 Lorenzo Leonini | ||
* SPDX-License-Identifier: GPL-2.0-only | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include QMK_KEYBOARD_H | ||
|
||
led_config_t g_led_config = { | ||
{ | ||
{12, 11, 8, 7, 4, 3, 36, 37, 38, 39, 40, 41}, | ||
{13, 10, 9, 6, 5, 2, 35, 34, 33, 32, 31, 30}, | ||
{14, 15, 16, 17, 18, 1, 24, 25, 26, 27, 28, 29}, | ||
{NO_LED, NO_LED, NO_LED, 19, 20, 21, 0, 22, 23, NO_LED, NO_LED, NO_LED} | ||
}, { | ||
{112, 32}, {92, 36}, {94, 25}, {97, 14}, {80, 13}, {77, 24}, | ||
{62, 18}, {64, 8}, {49, 6}, {46, 17}, {28, 23}, {30, 13}, | ||
{14, 11}, {11, 22}, {8, 32}, {26, 34}, {43, 28}, {61, 29}, | ||
{76, 34}, {78, 46}, {97, 49}, {112, 56}, {127, 49}, {146, 46}, | ||
{132, 36}, {148, 34}, {164, 29}, {180, 28}, {198, 34}, {215, 32}, | ||
{212, 22}, {196, 23}, {178, 17}, {161, 18}, {146, 24}, {130, 25}, | ||
{126, 14}, {143, 13}, {159, 8}, {175, 6}, {194, 13}, {210, 11} | ||
}, { | ||
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, | ||
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, | ||
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, | ||
4, 4, 4, 4, 4, 4 | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters