[Keyboard] Work Louder board fixup (#14247)
* [Keyboard] Add some last minute tweaks to Work board * Additional fixes * Fix rgb pin * Fix ws2812 hackery * additional led tweaks * Add indicator LEDs * fix bootmagic settings * Fix up RGB stuff * Limit power draw for entire board * fixup lights and such * change LED order on loop * Fix indicators if via is not enabled * Enable Sleep for rgb matrix * Even more LED tweaks * Final tweaks? * Tweak keycodes
This commit is contained in:
parent
d36a7c512d
commit
956cf8d7bf
8 changed files with 331 additions and 112 deletions
|
@ -24,15 +24,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define PRODUCT_ID 0xE6EF
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER Work Louder
|
||||
#define PRODUCT nano
|
||||
#define PRODUCT Nano Pad
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 1
|
||||
#ifdef VIA_ENABLE
|
||||
# define MATRIX_COLS 5
|
||||
#else
|
||||
# define MATRIX_COLS 3
|
||||
#endif
|
||||
#define MATRIX_ROWS 1
|
||||
#define MATRIX_COLS 5
|
||||
|
||||
/*
|
||||
* Keyboard Matrix Assignments
|
||||
|
@ -44,13 +40,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
|
||||
*
|
||||
*/
|
||||
#define MATRIX_ROW_PINS { F7 }
|
||||
#define MATRIX_COL_PINS { B5, B6, C6 }
|
||||
#define UNUSED_PINS
|
||||
#define MATRIX_ROW_PINS \
|
||||
{ F7 }
|
||||
#define MATRIX_COL_PINS \
|
||||
{ B5, B6, C6, NO_PIN, NO_PIN }
|
||||
|
||||
/* COL2ROW, ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
//#define LED_NUM_LOCK_PIN B0
|
||||
//#define LED_CAPS_LOCK_PIN B1
|
||||
|
@ -62,25 +58,26 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
//#define BACKLIGHT_LEVELS 3
|
||||
//#define BACKLIGHT_BREATHING
|
||||
|
||||
#define RGBLIGHT_DI_PIN C7
|
||||
# define RGBLED_NUM 6
|
||||
#define RGBLIGHT_DI_PIN C7
|
||||
#define RGBLED_NUM 6
|
||||
//# define RGBLIGHT_HUE_STEP 8
|
||||
//# define RGBLIGHT_SAT_STEP 8
|
||||
//# define RGBLIGHT_VAL_STEP 8
|
||||
//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
|
||||
# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
||||
/*== all animations enable ==*/
|
||||
# define RGBLIGHT_ANIMATIONS
|
||||
#define RGBLIGHT_LIMIT_VAL 120 /* The maximum brightness level */
|
||||
#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
||||
/*== or choose animations ==*/
|
||||
//# define RGBLIGHT_EFFECT_BREATHING
|
||||
//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
|
||||
//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
||||
//# define RGBLIGHT_EFFECT_SNAKE
|
||||
//# define RGBLIGHT_EFFECT_KNIGHT
|
||||
//# define RGBLIGHT_EFFECT_CHRISTMAS
|
||||
//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
|
||||
//# define RGBLIGHT_EFFECT_RGB_TEST
|
||||
//# define RGBLIGHT_EFFECT_ALTERNATING
|
||||
#define RGBLIGHT_EFFECT_BREATHING
|
||||
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
|
||||
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
||||
#define RGBLIGHT_EFFECT_SNAKE
|
||||
#define RGBLIGHT_EFFECT_KNIGHT
|
||||
#define RGBLIGHT_EFFECT_CHRISTMAS
|
||||
#define RGBLIGHT_EFFECT_STATIC_GRADIENT
|
||||
#define RGBLIGHT_EFFECT_RGB_TEST
|
||||
#define RGBLIGHT_EFFECT_TWINKLE
|
||||
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_STATIC_LIGHT
|
||||
#define RGBLIGHT_DEFAULT_HUE 170
|
||||
|
||||
/*== customize breathing effect ==*/
|
||||
/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
|
||||
//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
|
||||
|
@ -89,9 +86,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
|
||||
//#endif
|
||||
|
||||
#define RGB_DI_PIN F6
|
||||
#define DRIVER_LED_TOTAL 2
|
||||
#define RGB_DI_PIN F6
|
||||
#define DRIVER_LED_TOTAL 2
|
||||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120
|
||||
#define RGB_MATRIX_DISABLE_KEYCODES
|
||||
#define RGB_DISABLE_WHEN_USB_SUSPENDED
|
||||
|
||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||
#define DEBOUNCE 5
|
||||
|
@ -151,14 +150,21 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define NO_ACTION_FUNCTION
|
||||
|
||||
/* Bootmagic Lite key configuration */
|
||||
#define BOOTMAGIC_LITE_ROW 0
|
||||
#define BOOTMAGIC_LITE_COLUMN 3
|
||||
#define BOOTMAGIC_LITE_ROW 0
|
||||
#define BOOTMAGIC_LITE_COLUMN 2
|
||||
|
||||
|
||||
#define ENCODERS_PAD_A { D7 }
|
||||
#define ENCODERS_PAD_B { B4 }
|
||||
#define ENCODERS_PAD_A \
|
||||
{ D7 }
|
||||
#define ENCODERS_PAD_B \
|
||||
{ B4 }
|
||||
|
||||
#define ENCODERS 1
|
||||
|
||||
#define ENCODERS_CW_KEY { { 3, 0 } }
|
||||
#define ENCODERS_CCW_KEY { { 4, 0 } }
|
||||
#define ENCODERS_CW_KEY \
|
||||
{ \
|
||||
{ 3, 0 } \
|
||||
}
|
||||
#define ENCODERS_CCW_KEY \
|
||||
{ \
|
||||
{ 4, 0 } \
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue