]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/cannonkeys/satisfaction75/config.h
092b372577b270584df9ec205edc4c38adf3fe6e
[qmk_firmware.git] / keyboards / cannonkeys / satisfaction75 / config.h
1 /*
2 Copyright 2015 Jun Wako <wakojun@gmail.com>
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #pragma once
19
20 /* USB Device descriptor parameter */
21 #define VENDOR_ID       0xCA04
22 #define PRODUCT_ID      0x57F5
23 #define DEVICE_VER      0x0001
24 /* in python2: list(u"whatever".encode('utf-16-le')) */
25 /*   at most 32 characters or the ugly hack in usb_main.c borks */
26 #define MANUFACTURER CannonKeys
27 #define PRODUCT Satisfaction75
28 #define DESCRIPTION Satisfaction 75 Keyboard
29
30 /* key matrix size */
31 #define MATRIX_ROWS 6
32 #define MATRIX_COLS 16
33
34 #define MATRIX_COL_PINS { B1, B2, B10, B11, B12, B13, B14, A8, A9, A10, B0, A7, A5, B5, A15, A1 }
35 #define MATRIX_ROW_PINS { B3, B4, A0, A2, A4, A3 }
36 #define DIODE_DIRECTION COL2ROW
37
38 #define NUMBER_OF_ENCODERS 1
39 #define ENCODERS_PAD_A { B9 }
40 #define ENCODERS_PAD_B { B8 }
41
42 //LEDS A6, RGB B15
43 #define BACKLIGHT_LEVELS 24
44 #define BACKLIGHT_BREATHING
45 #define BREATHING_PERIOD 6
46
47 /* define if matrix has ghost */
48 //#define MATRIX_HAS_GHOST
49
50
51 /* Set 0 if debouncing isn't needed */
52 #define DEBOUNCE    5
53
54 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
55 #define LOCKING_SUPPORT_ENABLE
56 /* Locking resynchronize hack */
57 #define LOCKING_RESYNC_ENABLE
58
59 #ifdef QWIIC_MICRO_OLED_ENABLE
60
61 #undef I2C_ADDRESS_SA0_1
62 #define I2C_ADDRESS_SA0_1 0b0111100
63 #define LCDWIDTH      128
64 #define LCDHEIGHT     32
65
66 #endif
67
68
69 #define DYNAMIC_KEYMAP_LAYER_COUNT 4
70
71 // EEPROM usage
72
73 // TODO: refactor with new user EEPROM code (coming soon)
74 #define EEPROM_MAGIC 0x451F
75 #define EEPROM_MAGIC_ADDR 32
76 // Bump this every time we change what we store
77 // This will automatically reset the EEPROM with defaults
78 // and avoid loading invalid data from the EEPROM
79 #define EEPROM_VERSION 0x01
80 #define EEPROM_VERSION_ADDR 34
81
82 // Dynamic keymap starts after EEPROM version
83 #define DYNAMIC_KEYMAP_EEPROM_ADDR 35
84
85 // Dynamic macro starts after dynamic keymaps (35+(4*6*16*2)) = (35+768) = 803
86
87 // I'm also putting my custom stuff after that
88 // 1 for enabled encoder modes
89 // 1 for custom backlighting controls
90 // 1 for OLED default mode
91 // 6 for 3x custom encoder settings, left, right, and press (18 total)
92
93 #define DYNAMIC_KEYMAP_ENABLED_ENCODER_MODES 803
94 #define DYNAMIC_KEYMAP_CUSTOM_BACKLIGHT 804
95 #define DYNAMIC_KEYMAP_DEFAULT_OLED 805
96 #define DYNAMIC_KEYMAP_CUSTOM_ENCODER 806
97
98 #define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 824
99 #define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 200
100 #define DYNAMIC_KEYMAP_MACRO_COUNT 16
101
102
103
104 /*
105  * Feature disable options
106  *  These options are also useful to firmware size reduction.
107  */
108
109 /* disable debug print */
110 //#define NO_DEBUG
111
112 /* disable print */
113 //#define NO_PRINT
114
115 /* disable action features */
116 //#define NO_ACTION_LAYER
117 //#define NO_ACTION_TAPPING
118 //#define NO_ACTION_ONESHOT
119 //#define NO_ACTION_MACRO
120 //#define NO_ACTION_FUNCTION