mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-29 22:45:51 +00:00
66 lines
3.8 KiB
C
66 lines
3.8 KiB
C
/* Copyright 2022 @ Keychron (https://www.keychron.com)
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* 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/>.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
/* LED Matrix Driver Configuration */
|
|
#define SNLED27351_I2C_ADDRESS_1 SNLED27351_I2C_ADDRESS_GND
|
|
#define DRIVER_1_LED_TOTAL 84
|
|
#define LED_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL
|
|
|
|
#define SNLED27351_PHASE_CHANNEL SNLED27351_SCAN_PHASE_6_CHANNEL
|
|
#define SNLED27351_CURRENT_TUNE \
|
|
{ 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80 } // 250mA
|
|
// { 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40 } // 127mA
|
|
|
|
/* Disable LED lighting when PC is in suspend */
|
|
#define LED_DISABLE_WHEN_USB_SUSPENDED
|
|
|
|
/* Enable caps-lock LED */
|
|
#define CAPS_LOCK_LED_INDEX 46
|
|
|
|
// LED Matrix Animation modes. Explicitly enabled
|
|
// For full list of effects, see:
|
|
// https://docs.qmk.fm/#/feature_led_matrix?id=led-matrix-effects
|
|
#define ENABLE_LED_MATRIX_NONE
|
|
#define ENABLE_LED_MATRIX_SOLID // Static single val, no speed support
|
|
// #define ENABLE_LED_MATRIX_ALPHAS_MODS // Static dual val, speed is val for LEDs marked as modifiers
|
|
#define ENABLE_LED_MATRIX_BREATHING // Cycling brightness animation
|
|
// #define ENABLE_LED_MATRIX_BAND // Band fading brightness scrolling left to right
|
|
#define ENABLE_LED_MATRIX_BAND_PINWHEEL // 3 blade spinning pinwheel fades brightness
|
|
#define ENABLE_LED_MATRIX_BAND_SPIRAL // Spinning spiral fades brightness
|
|
#define ENABLE_LED_MATRIX_CYCLE_LEFT_RIGHT // Full gradient scrolling left to right
|
|
#define ENABLE_LED_MATRIX_CYCLE_UP_DOWN // Full gradient scrolling top to bottom
|
|
#define ENABLE_LED_MATRIX_CYCLE_OUT_IN // Full gradient scrolling out to in
|
|
#define ENABLE_LED_MATRIX_DUAL_BEACON // Full gradient spinning around center of keyboard
|
|
// #if defined(LED_MATRIX_KEYPRESSES) || defined(LED_MATRIX_KEYRELEASES)
|
|
#define LED_MATRIX_KEYPRESSES
|
|
#define LED_MATRIX_KEYRELEASES
|
|
|
|
#define ENABLE_LED_MATRIX_SOLID_REACTIVE_SIMPLE // Pulses keys hit then fades out
|
|
// #define ENABLE_LED_MATRIX_SOLID_REACTIVE_WIDE // Value pulses near a single key hit then fades out
|
|
#define ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTIWIDE // Value pulses near multiple key hits then fades out
|
|
#define ENABLE_LED_MATRIX_SOLID_REACTIVE_CROSS // Value pulses the same column and row of a single key hit then fades out
|
|
// #define ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTICROSS // Value pulses the same column and row of multiple key hits then fades out
|
|
// #define ENABLE_LED_MATRIX_SOLID_REACTIVE_NEXUS // Value pulses away on the same column and row of a single key hit then fades out
|
|
// #define ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTINEXUS // Value pulses away on the same column and row of multiple key hits then fades out
|
|
#define ENABLE_LED_MATRIX_SOLID_SPLASH // Value pulses away from a single key hit then fades out
|
|
#define ENABLE_LED_MATRIX_SOLID_MULTISPLASH // Value pulses away from multiple key hits then fades out
|
|
// #endif
|
|
#define ENABLE_LED_MATRIX_WAVE_LEFT_RIGHT // Sine wave scrolling from left to right
|
|
#define ENBALE_LED_MATRIX_WAVE_UP_DOWN // Sine wave scrolling from up to down
|
|
// #define ENABLE_LED_MATRIX_EFFECT_MAX
|