aboutsummaryrefslogtreecommitdiff
path: root/keyboards/mechlovin/hannah60rgb/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/mechlovin/hannah60rgb/config.h')
-rw-r--r--keyboards/mechlovin/hannah60rgb/config.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/keyboards/mechlovin/hannah60rgb/config.h b/keyboards/mechlovin/hannah60rgb/config.h
new file mode 100644
index 000000000..5ad16084f
--- /dev/null
+++ b/keyboards/mechlovin/hannah60rgb/config.h
@@ -0,0 +1,58 @@
1/*
2Copyright 2020 Mechlovin'
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0x4D4C // ML-Mechlovin
24#define PRODUCT_ID 0x6001
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Team.Mechlovin
27#define PRODUCT Hannah60 RGB
28#define DESCRIPTION Team.Mechlovin Hannah60 RGB
29
30/* key matrix size */
31#define MATRIX_ROWS 5
32#define MATRIX_COLS 14
33
34/*
35 * Keyboard Matrix Assignments
36 *
37 * Change this to how you wired your keyboard
38 * COLS: AVR pins used for columns, left to right
39 * ROWS: AVR pins used for rows, top to bottom
40 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
41 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
42 *
43 */
44#define MATRIX_ROW_PINS { A4, A5, A3, A2, A1 }
45#define MATRIX_COL_PINS { B11, B10, B2, B1, B0, A7, A6, A0, C15, B4, B5, B3, C13, C14 }
46
47#define DIODE_DIRECTION COL2ROW
48
49#define RGB_DI_PIN A15
50#define DRIVER_LED_TOTAL 72
51#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
52#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
53#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
54#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
55#define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended
56#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)
57#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
58#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set \ No newline at end of file