diff options
author | eucalyn <hi.eucalyn@gmail.com> | 2018-08-12 06:22:49 +0900 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-08-11 14:22:49 -0700 |
commit | acd276763177e7a288a24f4eb86b47f95207ab2f (patch) | |
tree | 68f5fcb1a040b7a95966f89e224c5a8eefb2c2f4 | |
parent | 7ad0f24efa3d15f25a18972b54311f651337e9f7 (diff) | |
download | qmk_firmware-acd276763177e7a288a24f4eb86b47f95207ab2f.tar.gz qmk_firmware-acd276763177e7a288a24f4eb86b47f95207ab2f.zip |
Keyboard: add blockey keyboard (#3545)
* add blockey
* change sources by reviews
-rw-r--r-- | keyboards/blockey/blockey.h | 45 | ||||
-rw-r--r-- | keyboards/blockey/config.h | 199 | ||||
-rw-r--r-- | keyboards/blockey/keymaps/default/keymap.c | 80 | ||||
-rw-r--r-- | keyboards/blockey/keymaps/eucalyn/keymap.c | 79 | ||||
-rw-r--r-- | keyboards/blockey/readme.md | 15 | ||||
-rw-r--r-- | keyboards/blockey/rules.mk | 72 |
6 files changed, 490 insertions, 0 deletions
diff --git a/keyboards/blockey/blockey.h b/keyboards/blockey/blockey.h new file mode 100644 index 000000000..f4869aa0e --- /dev/null +++ b/keyboards/blockey/blockey.h | |||
@@ -0,0 +1,45 @@ | |||
1 | /* Copyright 2018 Eucalyn | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #ifndef BLOCKEY_H | ||
17 | #define BLOCKEY_H | ||
18 | |||
19 | #include "quantum.h" | ||
20 | |||
21 | // This a shortcut to help you visually see your layout. | ||
22 | // The following is an example using the Planck MIT layout | ||
23 | // The first section contains all of the arguments | ||
24 | // The second converts the arguments into a two-dimensional array | ||
25 | #define LAYOUT( \ | ||
26 | k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12, k13, k14, \ | ||
27 | k15, k16, k17, k18, k19, k20, k21, k22, k23, k24, k25, k26, k27, k28, \ | ||
28 | k29, k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k40, k41, \ | ||
29 | k42, k43, k44, k45, k46, k47, k48, k49, k50, k51, k52, k53, k54, \ | ||
30 | k55, k56, k57, k58, k59, k60, k61, k62 \ | ||
31 | ) \ | ||
32 | { \ | ||
33 | { k01, k02, k03, k04, k05, k06, k07 }, \ | ||
34 | { k15, k16, k17, k18, k19, k20, k21 }, \ | ||
35 | { k29, k30, k31, k32, k33, k34, k35 }, \ | ||
36 | { k42, k43, k44, k45, k46, k47, k48 }, \ | ||
37 | { k55, k56, k57, k58, KC_NO, KC_NO, k59 }, \ | ||
38 | { k08, k09, k10, k11, k12, k13, k14 }, \ | ||
39 | { k22, k23, k24, k25, k26, k27, k28 }, \ | ||
40 | { k36, k37, k38, k39, k40, k41, KC_NO }, \ | ||
41 | { k49, k50, k51, k52, k53, k54, KC_NO }, \ | ||
42 | { KC_NO, KC_NO, KC_NO, k60, k61, k62, KC_NO}, \ | ||
43 | } | ||
44 | |||
45 | #endif | ||
diff --git a/keyboards/blockey/config.h b/keyboards/blockey/config.h new file mode 100644 index 000000000..b099a816b --- /dev/null +++ b/keyboards/blockey/config.h | |||
@@ -0,0 +1,199 @@ | |||
1 | /* | ||
2 | Copyright 2018 Eucalyn | ||
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 | #ifndef CONFIG_H | ||
19 | #define CONFIG_H | ||
20 | |||
21 | #include "config_common.h" | ||
22 | |||
23 | /* USB Device descriptor parameter */ | ||
24 | #define VENDOR_ID 0xFEED | ||
25 | #define PRODUCT_ID 0x0000 | ||
26 | #define DEVICE_VER 0x0001 | ||
27 | #define MANUFACTURER Eucalyn | ||
28 | #define PRODUCT Blockey | ||
29 | #define DESCRIPTION A custom keyboard | ||
30 | |||
31 | /* key matrix size */ | ||
32 | #define MATRIX_ROWS 10 | ||
33 | #define MATRIX_COLS 7 | ||
34 | |||
35 | /* | ||
36 | * Keyboard Matrix Assignments | ||
37 | * | ||
38 | * Change this to how you wired your keyboard | ||
39 | * COLS: AVR pins used for columns, left to right | ||
40 | * ROWS: AVR pins used for rows, top to bottom | ||
41 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
42 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
43 | * | ||
44 | */ | ||
45 | #define MATRIX_ROW_PINS { D3, D1, D4, E6, B5, D2, F6, B3, B2, B6 } | ||
46 | #define MATRIX_COL_PINS { D0, B4, C6, D7, F4, F5, F7 } | ||
47 | #define UNUSED_PINS | ||
48 | |||
49 | /* COL2ROW, ROW2COL, or CUSTOM_MATRIX */ | ||
50 | #define DIODE_DIRECTION COL2ROW | ||
51 | |||
52 | /* ws2812 RGB LED */ | ||
53 | #define RGB_DI_PIN B1 | ||
54 | #define RGBLIGHT_TIMER | ||
55 | #define RGBLED_NUM 4 | ||
56 | #define ws2812_PORTREG PORTB | ||
57 | #define ws2812_DDRREG DDRB | ||
58 | |||
59 | #define RGBLIGHT_HUE_STEP 10 | ||
60 | #define RGBLIGHT_SAT_STEP 17 | ||
61 | |||
62 | #define RGBLIGHT_ANIMATIONS | ||
63 | |||
64 | |||
65 | |||
66 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
67 | #define DEBOUNCING_DELAY 5 | ||
68 | |||
69 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
70 | //#define MATRIX_HAS_GHOST | ||
71 | |||
72 | /* number of backlight levels */ | ||
73 | |||
74 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
75 | #define LOCKING_SUPPORT_ENABLE | ||
76 | /* Locking resynchronize hack */ | ||
77 | #define LOCKING_RESYNC_ENABLE | ||
78 | |||
79 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
80 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
81 | */ | ||
82 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
83 | |||
84 | /* | ||
85 | * Force NKRO | ||
86 | * | ||
87 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
88 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
89 | * makefile for this to work.) | ||
90 | * | ||
91 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
92 | * until the next keyboard reset. | ||
93 | * | ||
94 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
95 | * fully operational during normal computer usage. | ||
96 | * | ||
97 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
98 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
99 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
100 | * power-up. | ||
101 | * | ||
102 | */ | ||
103 | //#define FORCE_NKRO | ||
104 | |||
105 | /* | ||
106 | * Magic Key Options | ||
107 | * | ||
108 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
109 | * the keyboard. They are best used in combination with the HID Listen program, | ||
110 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
111 | * | ||
112 | * The options below allow the magic key functionality to be changed. This is | ||
113 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
114 | * | ||
115 | */ | ||
116 | |||
117 | /* key combination for magic key command */ | ||
118 | #define IS_COMMAND() ( \ | ||
119 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
120 | ) | ||
121 | |||
122 | /* control how magic key switches layers */ | ||
123 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
124 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
125 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
126 | |||
127 | /* override magic key keymap */ | ||
128 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
129 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
130 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
131 | //#define MAGIC_KEY_HELP1 H | ||
132 | //#define MAGIC_KEY_HELP2 SLASH | ||
133 | //#define MAGIC_KEY_DEBUG D | ||
134 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
135 | //#define MAGIC_KEY_DEBUG_KBD K | ||
136 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
137 | //#define MAGIC_KEY_VERSION V | ||
138 | //#define MAGIC_KEY_STATUS S | ||
139 | //#define MAGIC_KEY_CONSOLE C | ||
140 | //#define MAGIC_KEY_LAYER0_ALT1 ESC | ||
141 | //#define MAGIC_KEY_LAYER0_ALT2 GRAVE | ||
142 | //#define MAGIC_KEY_LAYER0 0 | ||
143 | //#define MAGIC_KEY_LAYER1 1 | ||
144 | //#define MAGIC_KEY_LAYER2 2 | ||
145 | //#define MAGIC_KEY_LAYER3 3 | ||
146 | //#define MAGIC_KEY_LAYER4 4 | ||
147 | //#define MAGIC_KEY_LAYER5 5 | ||
148 | //#define MAGIC_KEY_LAYER6 6 | ||
149 | //#define MAGIC_KEY_LAYER7 7 | ||
150 | //#define MAGIC_KEY_LAYER8 8 | ||
151 | //#define MAGIC_KEY_LAYER9 9 | ||
152 | //#define MAGIC_KEY_BOOTLOADER PAUSE | ||
153 | //#define MAGIC_KEY_LOCK CAPS | ||
154 | //#define MAGIC_KEY_EEPROM E | ||
155 | //#define MAGIC_KEY_NKRO N | ||
156 | //#define MAGIC_KEY_SLEEP_LED Z | ||
157 | |||
158 | /* | ||
159 | * Feature disable options | ||
160 | * These options are also useful to firmware size reduction. | ||
161 | */ | ||
162 | |||
163 | /* disable debug print */ | ||
164 | //#define NO_DEBUG | ||
165 | |||
166 | /* disable print */ | ||
167 | //#define NO_PRINT | ||
168 | |||
169 | /* disable action features */ | ||
170 | //#define NO_ACTION_LAYER | ||
171 | //#define NO_ACTION_TAPPING | ||
172 | //#define NO_ACTION_ONESHOT | ||
173 | //#define NO_ACTION_MACRO | ||
174 | //#define NO_ACTION_FUNCTION | ||
175 | |||
176 | /* | ||
177 | * MIDI options | ||
178 | */ | ||
179 | |||
180 | /* Prevent use of disabled MIDI features in the keymap */ | ||
181 | //#define MIDI_ENABLE_STRICT 1 | ||
182 | |||
183 | /* enable basic MIDI features: | ||
184 | - MIDI notes can be sent when in Music mode is on | ||
185 | */ | ||
186 | //#define MIDI_BASIC | ||
187 | |||
188 | /* enable advanced MIDI features: | ||
189 | - MIDI notes can be added to the keymap | ||
190 | - Octave shift and transpose | ||
191 | - Virtual sustain, portamento, and modulation wheel | ||
192 | - etc. | ||
193 | */ | ||
194 | //#define MIDI_ADVANCED | ||
195 | |||
196 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
197 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | ||
198 | |||
199 | #endif | ||
diff --git a/keyboards/blockey/keymaps/default/keymap.c b/keyboards/blockey/keymaps/default/keymap.c new file mode 100644 index 000000000..594f04f35 --- /dev/null +++ b/keyboards/blockey/keymaps/default/keymap.c | |||
@@ -0,0 +1,80 @@ | |||
1 | /* Copyright 2018 Eucalyn | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #include QMK_KEYBOARD_H | ||
17 | |||
18 | #ifdef RGBLIGHT_ENABLE | ||
19 | //Following line allows macro to read current RGB settings | ||
20 | extern rgblight_config_t rgblight_config; | ||
21 | #endif | ||
22 | |||
23 | // Fillers to make layering more clear | ||
24 | #define _______ KC_TRNS | ||
25 | #define XXXXXXX KC_NO | ||
26 | |||
27 | |||
28 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
29 | [0] = LAYOUT( | ||
30 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,KC_EQL, KC_BSPC, \ | ||
31 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,KC_RBRC,KC_BSLS, \ | ||
32 | KC_LCTL,KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_QUOT,KC_ENT, \ | ||
33 | KC_LSFT,KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH,KC_UP, MO(1), \ | ||
34 | KC_ESC, KC_CAPS,KC_LALT,KC_LGUI,KC_SPC, KC_LEFT,KC_DOWN,KC_RGHT \ | ||
35 | ), | ||
36 | [1] = LAYOUT( | ||
37 | _______,KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, \ | ||
38 | _______,RGB_TOG,RGB_HUI,RGB_SAI,RGB_VAI,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX, \ | ||
39 | _______,RGB_MOD,RGB_HUD,RGB_SAD,RGB_VAD,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,_______, \ | ||
40 | _______,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,KC_PGUP,_______, \ | ||
41 | _______,_______,_______,_______,_______, KC_HOME,KC_PGDN,KC_END \ | ||
42 | ), | ||
43 | |||
44 | }; | ||
45 | |||
46 | const uint16_t PROGMEM fn_actions[] = { | ||
47 | |||
48 | }; | ||
49 | |||
50 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | ||
51 | { | ||
52 | // MACRODOWN only works in this function | ||
53 | switch(id) { | ||
54 | case 0: | ||
55 | if (record->event.pressed) { | ||
56 | register_code(KC_RSFT); | ||
57 | } else { | ||
58 | unregister_code(KC_RSFT); | ||
59 | } | ||
60 | break; | ||
61 | } | ||
62 | return MACRO_NONE; | ||
63 | }; | ||
64 | |||
65 | |||
66 | void matrix_init_user(void) { | ||
67 | |||
68 | } | ||
69 | |||
70 | void matrix_scan_user(void) { | ||
71 | |||
72 | } | ||
73 | |||
74 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
75 | return true; | ||
76 | } | ||
77 | |||
78 | void led_set_user(uint8_t usb_led) { | ||
79 | |||
80 | } | ||
diff --git a/keyboards/blockey/keymaps/eucalyn/keymap.c b/keyboards/blockey/keymaps/eucalyn/keymap.c new file mode 100644 index 000000000..7f79d6628 --- /dev/null +++ b/keyboards/blockey/keymaps/eucalyn/keymap.c | |||
@@ -0,0 +1,79 @@ | |||
1 | /* Copyright 2018 Eucalyn | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #include QMK_KEYBOARD_H | ||
17 | |||
18 | #ifdef RGBLIGHT_ENABLE | ||
19 | //Following line allows macro to read current RGB settings | ||
20 | extern rgblight_config_t rgblight_config; | ||
21 | #endif | ||
22 | |||
23 | // Fillers to make layering more clear | ||
24 | #define _______ KC_TRNS | ||
25 | #define XXXXXXX KC_NO | ||
26 | |||
27 | |||
28 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
29 | [0] = LAYOUT( | ||
30 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,KC_EQL, KC_BSPC, \ | ||
31 | KC_TAB, KC_Q, KC_W, KC_COMM,KC_DOT, KC_SCLN,KC_M, KC_R, KC_D, KC_Y, KC_P, KC_LBRC,KC_RBRC,KC_BSLS, \ | ||
32 | KC_LCTL,KC_A, KC_O, KC_E, KC_I, KC_U, KC_G, KC_T, KC_K, KC_S, KC_N, KC_QUOT,KC_ENT, \ | ||
33 | KC_LSFT,KC_Z, KC_X, KC_C, KC_V, KC_F, KC_B, KC_H, KC_J, KC_L, KC_SLSH,KC_UP, MO(1), \ | ||
34 | KC_ESC, KC_CAPS,KC_LALT,KC_LGUI,KC_SPC, KC_LEFT,KC_DOWN,KC_RGHT \ | ||
35 | ), | ||
36 | [1] = LAYOUT( | ||
37 | _______,KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, \ | ||
38 | _______,RGB_TOG,RGB_HUI,RGB_SAI,RGB_VAI,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX, \ | ||
39 | _______,RGB_MOD,RGB_HUD,RGB_SAD,RGB_VAD,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,_______, \ | ||
40 | _______,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,KC_PGUP,_______, \ | ||
41 | _______,_______,_______,_______,_______, KC_HOME,KC_PGDN,KC_END \ | ||
42 | ), | ||
43 | }; | ||
44 | |||
45 | const uint16_t PROGMEM fn_actions[] = { | ||
46 | |||
47 | }; | ||
48 | |||
49 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | ||
50 | { | ||
51 | // MACRODOWN only works in this function | ||
52 | switch(id) { | ||
53 | case 0: | ||
54 | if (record->event.pressed) { | ||
55 | register_code(KC_RSFT); | ||
56 | } else { | ||
57 | unregister_code(KC_RSFT); | ||
58 | } | ||
59 | break; | ||
60 | } | ||
61 | return MACRO_NONE; | ||
62 | }; | ||
63 | |||
64 | |||
65 | void matrix_init_user(void) { | ||
66 | |||
67 | } | ||
68 | |||
69 | void matrix_scan_user(void) { | ||
70 | |||
71 | } | ||
72 | |||
73 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
74 | return true; | ||
75 | } | ||
76 | |||
77 | void led_set_user(uint8_t usb_led) { | ||
78 | |||
79 | } | ||
diff --git a/keyboards/blockey/readme.md b/keyboards/blockey/readme.md new file mode 100644 index 000000000..ecae56125 --- /dev/null +++ b/keyboards/blockey/readme.md | |||
@@ -0,0 +1,15 @@ | |||
1 | # BlocKey | ||
2 | |||
3 |  | ||
4 | |||
5 | A small keyboard. | ||
6 | |||
7 | Keyboard Maintainer: [Eucalyn](https://github.com/eucalyn/) [@eucalyn_](https://twitter.com/eucalyn_) | ||
8 | Hardware Supported: BlocKey PCB, Pro Micro | ||
9 | Hardware Availability: | ||
10 | |||
11 | Make example for this keyboard (after setting up your build environment): | ||
12 | |||
13 | make blockey:default | ||
14 | |||
15 | See [build environment setup](https://docs.qmk.fm/build_environment_setup.html) then the [make instructions](https://docs.qmk.fm/make_instructions.html) for more information. | ||
diff --git a/keyboards/blockey/rules.mk b/keyboards/blockey/rules.mk new file mode 100644 index 000000000..e217305bf --- /dev/null +++ b/keyboards/blockey/rules.mk | |||
@@ -0,0 +1,72 @@ | |||
1 | SRC += ws2812.c | ||
2 | |||
3 | # MCU name | ||
4 | #MCU = at90usb1286 | ||
5 | MCU = atmega32u4 | ||
6 | |||
7 | # Processor frequency. | ||
8 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
9 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
10 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
11 | # automatically to create a 32-bit value in your source code. | ||
12 | # | ||
13 | # This will be an integer division of F_USB below, as it is sourced by | ||
14 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
15 | # does not *change* the processor frequency - it should merely be updated to | ||
16 | # reflect the processor speed set externally so that the code can use accurate | ||
17 | # software delays. | ||
18 | F_CPU = 16000000 | ||
19 | |||
20 | |||
21 | # | ||
22 | # LUFA specific | ||
23 | # | ||
24 | # Target architecture (see library "Board Types" documentation). | ||
25 | ARCH = AVR8 | ||
26 | |||
27 | # Input clock frequency. | ||
28 | # This will define a symbol, F_USB, in all source code files equal to the | ||
29 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
30 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
31 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
32 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
33 | # at the end, this will be done automatically to create a 32-bit value in your | ||
34 | # source code. | ||
35 | # | ||
36 | # If no clock division is performed on the input clock inside the AVR (via the | ||
37 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
38 | F_USB = $(F_CPU) | ||
39 | |||
40 | # Interrupt driven control endpoint task(+60) | ||
41 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
42 | |||
43 | |||
44 | # Boot Section Size in *bytes* | ||
45 | # Teensy halfKay 512 | ||
46 | # Teensy++ halfKay 1024 | ||
47 | # Atmel DFU loader 4096 | ||
48 | # LUFA bootloader 4096 | ||
49 | # USBaspLoader 2048 | ||
50 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
51 | |||
52 | |||
53 | # Build Options | ||
54 | # change yes to no to disable | ||
55 | # | ||
56 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
57 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
58 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
59 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
60 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
61 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
62 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
63 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
64 | NKRO_ENABLE = no # USB Nkey Rollover | ||
65 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default | ||
66 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | ||
67 | UNICODE_ENABLE = no # Unicode | ||
68 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
69 | AUDIO_ENABLE = no # Audio output on port C6 | ||
70 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
71 | |||
72 | RGBLIGHT_ENABLE = yes | ||