diff options
| author | zvecr <git@zvecr.com> | 2019-04-08 19:35:47 +0100 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-04-08 11:35:47 -0700 |
| commit | da9bb590551e4e40552f301852074dffccd2c29d (patch) | |
| tree | 5d8fd5838f6e2060b7cf66619b40a8f8d5533413 /keyboards/jj4x4/config.h | |
| parent | 15d7c5f0bdfff97d5d7af6d474cc57d66b6bba94 (diff) | |
| download | qmk_firmware-da9bb590551e4e40552f301852074dffccd2c29d.tar.gz qmk_firmware-da9bb590551e4e40552f301852074dffccd2c29d.zip | |
[Keyboard] Refactor jj4x4 to current standards (#5567)
* Refactor 4x4 in line with current ps2avrgb template
* Add backlight pwm bodge till #4324 lands
* Disable bootmagic lite as it seems to not work on atmega32a/bootloadHID
Diffstat (limited to 'keyboards/jj4x4/config.h')
| -rw-r--r-- | keyboards/jj4x4/config.h | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/keyboards/jj4x4/config.h b/keyboards/jj4x4/config.h index 3ecdc06ea..a8df46f01 100644 --- a/keyboards/jj4x4/config.h +++ b/keyboards/jj4x4/config.h | |||
| @@ -19,7 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 19 | 19 | ||
| 20 | #include "config_common.h" | 20 | #include "config_common.h" |
| 21 | 21 | ||
| 22 | |||
| 23 | #define VENDOR_ID 0x20A0 | 22 | #define VENDOR_ID 0x20A0 |
| 24 | #define PRODUCT_ID 0x422D | 23 | #define PRODUCT_ID 0x422D |
| 25 | // TODO: share these strings with usbconfig.h | 24 | // TODO: share these strings with usbconfig.h |
| @@ -36,16 +35,24 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 36 | /* COL2ROW or ROW2COL */ | 35 | /* COL2ROW or ROW2COL */ |
| 37 | #define DIODE_DIRECTION COL2ROW | 36 | #define DIODE_DIRECTION COL2ROW |
| 38 | 37 | ||
| 38 | #define BACKLIGHT_PIN D4 | ||
| 39 | #define BACKLIGHT_LEVELS 12 | 39 | #define BACKLIGHT_LEVELS 12 |
| 40 | // #define BACKLIGHT_BREATHING // works, but BL_TOGG might not work | 40 | // #define BACKLIGHT_BREATHING // Requires #4324 to enable hardware pwm for atmega32a |
| 41 | |||
| 42 | /* RGB underglow */ | ||
| 43 | // NOTE: for PS2AVRGB boards, underglow commands are sent via I2C to 0xB0. | ||
| 44 | #define RGBLED_NUM 4 | ||
| 45 | #define RGBLIGHT_ANIMATIONS | ||
| 41 | 46 | ||
| 42 | #define TAPPING_TOGGLE 3 | 47 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
| 48 | #define DEBOUNCING_DELAY 5 | ||
| 43 | 49 | ||
| 44 | #define NO_UART 1 | 50 | #define NO_UART 1 |
| 45 | 51 | ||
| 46 | /* RGB underglow */ | 52 | /* key combination for magic key command */ |
| 47 | // The RGB_DI_PIN value seems to be shared between all PS2AVRGB boards. | 53 | /* defined by default; to change, uncomment and set to the combination you want */ |
| 48 | // The same pin is used on the JJ40, at least. | 54 | // #define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT))) |
| 49 | #define RGBLED_NUM 5 | 55 | |
| 50 | #define RGB_DI_PIN E2 // NOTE: for PS2AVRGB boards, underglow commands are sent via I2C to 0xB0. | 56 | /* Bootmagic Lite key configuration */ |
| 51 | #define RGBLIGHT_ANIMATIONS | 57 | // #define BOOTMAGIC_LITE_ROW 0 |
| 58 | // #define BOOTMAGIC_LITE_COLUMN 0 | ||
