diff options
author | Rozakiin <6567067+Rozakiin@users.noreply.github.com> | 2021-02-16 19:27:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-16 11:27:20 -0800 |
commit | 2d55f34413c6c6f9c674082fa32f6564b7ed4bf2 (patch) | |
tree | 0c12dfa5cb629f1117fc48eef19b81412be525ff /keyboards/noxary/268_2_rgb/config.h | |
parent | d754266a6d93b9280f95e1b53aeccf5d50487f1f (diff) |
[Keyboard] Add Noxary 268.2 RGB (#11772)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Ruari <ruari.armstrong@gmail.com>
Diffstat (limited to 'keyboards/noxary/268_2_rgb/config.h')
-rw-r--r-- | keyboards/noxary/268_2_rgb/config.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/keyboards/noxary/268_2_rgb/config.h b/keyboards/noxary/268_2_rgb/config.h new file mode 100644 index 0000000000..eafbbd4092 --- /dev/null +++ b/keyboards/noxary/268_2_rgb/config.h @@ -0,0 +1,73 @@ +/* +Copyright 2020 Rozakiin +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 + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0x4E58 //"NX" +#define PRODUCT_ID 0x0A7C //2684 +#define DEVICE_VER 0x0001 +#define MANUFACTURER Noxary +#define PRODUCT 268.2_RGB + +/* key matrix size */ +#define MATRIX_ROWS 5 +#define MATRIX_COLS 16 + +/* + * Keyboard Matrix Assignments + * + * Change this to how you wired your keyboard + * COLS: AVR pins used for columns, left to right + * ROWS: AVR pins used for rows, top to bottom + * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) + * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) + * +*/ +#define MATRIX_ROW_PINS { F6, F5, F4, F0, B6 } +#define MATRIX_COL_PINS { C6, C7, F7, F1, E6, B2, B1, D6, B4, D7, D4, D5, D3, D2, D1, D0 } +#define UNUSED_PINS + +/* COL2ROW, ROW2COL*/ +#define DIODE_DIRECTION COL2ROW + +#define LED_CAPS_LOCK_PIN B0 + +#define BACKLIGHT_PIN B7 +//define BACKLIGHT_BREATHING +#define BACKLIGHT_LEVELS 3 + +/* ws2812b options */ +#define RGB_DI_PIN B5 +#ifdef RGB_DI_PIN +#define RGBLIGHT_ANIMATIONS +#define RGBLED_NUM 16 +#define RGBLIGHT_HUE_STEP 16 +#define RGBLIGHT_SAT_STEP 16 +#define RGBLIGHT_VAL_STEP 16 +/*#define RGBLIGHT_LIMIT_VAL 255 */ +#endif + +/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ +#define DEBOUNCE 5 + +/* define if matrix has ghost (lacks anti-ghosting diodes) */ +//#define MATRIX_HAS_GHOST + +/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ +#define LOCKING_SUPPORT_ENABLE +/* Locking resynchronize hack */ +#define LOCKING_RESYNC_ENABLE |