diff options
Diffstat (limited to 'keyboards/mechlovin/hannah60rgb/rev2/config.h')
| -rw-r--r-- | keyboards/mechlovin/hannah60rgb/rev2/config.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/keyboards/mechlovin/hannah60rgb/rev2/config.h b/keyboards/mechlovin/hannah60rgb/rev2/config.h new file mode 100644 index 000000000..2bcffbc85 --- /dev/null +++ b/keyboards/mechlovin/hannah60rgb/rev2/config.h | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #define PRODUCT_ID 0x6002 | ||
| 4 | #define DEVICE_VER 0x0001 | ||
| 5 | #define PRODUCT Hannah60 RGB Rev.2 | ||
| 6 | |||
| 7 | #ifdef RGBLIGHT_ENABLE | ||
| 8 | # define RGB_DI_PIN A15 | ||
| 9 | # define RGBLED_NUM 18 | ||
| 10 | # define RGBLIGHT_ANIMATIONS | ||
| 11 | # define RGBLIGHT_HUE_STEP 8 | ||
| 12 | # define RGBLIGHT_SAT_STEP 8 | ||
| 13 | # define RGBLIGHT_VAL_STEP 8 | ||
| 14 | #endif | ||
| 15 | |||
| 16 | //rgb matrix setting// This is a 7-bit address, that gets left-shifted and bit 0 | ||
| 17 | // set to 0 for write, 1 for read (as per I2C protocol) | ||
| 18 | // The address will vary depending on your wiring: | ||
| 19 | // 0b1110100 AD <-> GND | ||
| 20 | // 0b1110111 AD <-> VCC | ||
| 21 | // 0b1110101 AD <-> SCL | ||
| 22 | // 0b1110110 AD <-> SDA | ||
| 23 | #define DRIVER_ADDR_1 0b1110100 | ||
| 24 | #define DRIVER_ADDR_2 0b1110110 | ||
| 25 | #define DRIVER_COUNT 2 | ||
| 26 | #define DRIVER_1_LED_TOTAL 44 | ||
| 27 | #define DRIVER_2_LED_TOTAL 34 | ||
| 28 | #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) | ||
| 29 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses | ||
| 30 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | ||
| 31 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
| 32 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | ||
| 33 | #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | ||
| 34 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | ||
| 35 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | ||
| 36 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set | ||
| 37 | |||
| 38 | #if defined(RGBLIGHT_ENABLE) && defined(RGB_MATRIX_ENABLE) | ||
| 39 | # define RGB_MATRIX_DISABLE_KEYCODES | ||
| 40 | #endif \ No newline at end of file | ||
