aboutsummaryrefslogtreecommitdiff
path: root/keyboards/clueboard/66/rev2
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/clueboard/66/rev2')
-rw-r--r--keyboards/clueboard/66/rev2/config.h53
-rw-r--r--keyboards/clueboard/66/rev2/rev2.h8
-rw-r--r--keyboards/clueboard/66/rev2/rules.mk23
3 files changed, 66 insertions, 18 deletions
diff --git a/keyboards/clueboard/66/rev2/config.h b/keyboards/clueboard/66/rev2/config.h
index 6ab2b1127..0216b5e1f 100644
--- a/keyboards/clueboard/66/rev2/config.h
+++ b/keyboards/clueboard/66/rev2/config.h
@@ -1,28 +1,59 @@
1#ifndef CLUEBOARD_66_REV2_CONFIG_H 1#pragma once
2#define CLUEBOARD_66_REV2_CONFIG_H
3 2
4#include "config_common.h" 3#include "config_common.h"
5 4
5/* USB Device descriptor parameter */
6#define VENDOR_ID 0xC1ED
6#define PRODUCT_ID 0x2320 7#define PRODUCT_ID 0x2320
7#define DEVICE_VER 0x0001 8#define DEVICE_VER 0x0001
9#define MANUFACTURER Clueboard
10#define PRODUCT Clueboard
11#define DESCRIPTION QMK keyboard firmware for Clueboard
8 12
9/* key matrix size */ 13/* key matrix size */
10#define MATRIX_ROWS 10 14#define MATRIX_ROWS 10
11#define MATRIX_COLS 8 15#define MATRIX_COLS 8
12 16
13// ROWS: Top to bottom, COLS: Left to right 17/* ROWS: Top to bottom, COLS: Left to right
14/* Row pin configuration
15* row: 0 1 2 3 4 5 6 7 8 9
16* pin: B2 C7 C6 B6 B5 B0 B3 D5 D3 D2
17*/ 18*/
18#define MATRIX_ROW_PINS { B2, C7, C6, B6, B5, B0, B3, D5, D3, D2 } 19#define MATRIX_ROW_PINS { B2, C7, C6, B6, B5, B0, B3, D5, D3, D2 }
19/* Column pin configuration
20 * col: 0 1 2 3 4 5 6 7
21 * pin: F0 F1 F4 F5 F6 F7 E6 B1
22 */
23#define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, E6, B1 } 20#define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, E6, B1 }
24#define UNUSED_PINS 21#define UNUSED_PINS
25 22
23/* COL2ROW or ROW2COL */
24#define DIODE_DIRECTION COL2ROW
25
26/* Set 0 if debouncing isn't needed */
27#define DEBOUNCING_DELAY 5
28
29/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
30#define LOCKING_SUPPORT_ENABLE
31/* Locking resynchronize hack */
32#define LOCKING_RESYNC_ENABLE
33
34/* key combination for command */
35#define IS_COMMAND() ( \
36 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
37)
38
39/*
40 * Feature disable options
41 * These options are also useful to firmware size reduction.
42 */
43
44/* disable debug print */
45//#define NO_DEBUG
46
47/* disable print */
48//#define NO_PRINT
49
50/* disable action features */
51//#define NO_ACTION_LAYER
52//#define NO_ACTION_TAPPING
53//#define NO_ACTION_ONESHOT
54//#define NO_ACTION_MACRO
55//#define NO_ACTION_FUNCTION
56
26 /* Backlight configuration 57 /* Backlight configuration
27 */ 58 */
28#define BACKLIGHT_LEVELS 1 59#define BACKLIGHT_LEVELS 1
@@ -44,5 +75,3 @@
44#define RGBLIGHT_EFFECT_KNIGHT_OFFSET 1 // The led to start at 75#define RGBLIGHT_EFFECT_KNIGHT_OFFSET 1 // The led to start at
45#define RGBLIGHT_EFFECT_KNIGHT_LED_NUM 5 // How many LEDs to travel 76#define RGBLIGHT_EFFECT_KNIGHT_LED_NUM 5 // How many LEDs to travel
46#define RGBLIGHT_EFFECT_SNAKE_LENGTH 4 // How many LEDs wide to light up 77#define RGBLIGHT_EFFECT_SNAKE_LENGTH 4 // How many LEDs wide to light up
47
48#endif
diff --git a/keyboards/clueboard/66/rev2/rev2.h b/keyboards/clueboard/66/rev2/rev2.h
index bac608df9..267e6795e 100644
--- a/keyboards/clueboard/66/rev2/rev2.h
+++ b/keyboards/clueboard/66/rev2/rev2.h
@@ -1,7 +1,6 @@
1#ifndef REV2_H 1#pragma once
2#define REV2_H
3 2
4#include "66.h" 3#include "quantum.h"
5 4
6/* Clueboard matrix layout 5/* Clueboard matrix layout
7 * ,-----------------------------------------------------------. ,---. 6 * ,-----------------------------------------------------------. ,---.
@@ -48,7 +47,6 @@
48 { k80, k81, k82, k83, k84, k85, k86, KC_NO }, \ 47 { k80, k81, k82, k83, k84, k85, k86, KC_NO }, \
49 { k90, KC_NO, k92, k93, k94, k95, k96, k97 } \ 48 { k90, KC_NO, k92, k93, k94, k95, k96, k97 } \
50} 49}
51#define KEYMAP LAYOUT
52 50
53/* LAYOUT_66_ansi, standard 66 key ANSI layout 51/* LAYOUT_66_ansi, standard 66 key ANSI layout
54 */ 52 */
@@ -92,4 +90,4 @@
92 { KC_NO, KC_NO, k92, k93, k94, k95, k96, k97 } \ 90 { KC_NO, KC_NO, k92, k93, k94, k95, k96, k97 } \
93} 91}
94 92
95#endif 93#define KEYMAP LAYOUT
diff --git a/keyboards/clueboard/66/rev2/rules.mk b/keyboards/clueboard/66/rev2/rules.mk
index 54a2685bf..4987ac137 100644
--- a/keyboards/clueboard/66/rev2/rules.mk
+++ b/keyboards/clueboard/66/rev2/rules.mk
@@ -1 +1,22 @@
1BACKLIGHT_ENABLE = yes \ No newline at end of file 1LAYOUTS = 66_ansi 66_iso
2MCU = atmega32u4
3F_CPU = 16000000
4ARCH = AVR8
5F_USB = $(F_CPU)
6OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
7OPT_DEFS += -DBOOTLOADER_SIZE=4096
8
9
10# Build Options
11BACKLIGHT_ENABLE = yes
12BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
13MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
14EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
15CONSOLE_ENABLE = yes # Console for debug(+400)
16COMMAND_ENABLE = no # Commands for debug and configuration
17NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18AUDIO_ENABLE = no
19RGBLIGHT_ENABLE = yes # Enable keyboard underlight functionality
20MIDI_ENABLE = no # MIDI controls
21UNICODE_ENABLE = no # Unicode
22BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID