aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/nyquist/nyquist.h3
-rw-r--r--keyboards/nyquist/rev1/config.h4
-rw-r--r--keyboards/nyquist/rev2/config.h86
-rw-r--r--keyboards/nyquist/rev2/rev2.c21
-rw-r--r--keyboards/nyquist/rev2/rev2.h68
-rw-r--r--keyboards/nyquist/rev2/rules.mk1
-rw-r--r--keyboards/nyquist/rules.mk1
7 files changed, 181 insertions, 3 deletions
diff --git a/keyboards/nyquist/nyquist.h b/keyboards/nyquist/nyquist.h
index a96d40d9f..d401a45f7 100644
--- a/keyboards/nyquist/nyquist.h
+++ b/keyboards/nyquist/nyquist.h
@@ -4,6 +4,9 @@
4#ifdef KEYBOARD_nyquist_rev1 4#ifdef KEYBOARD_nyquist_rev1
5 #include "rev1.h" 5 #include "rev1.h"
6#endif 6#endif
7#ifdef KEYBOARD_nyquist_rev2
8 #include "rev2.h"
9#endif
7 10
8#include "quantum.h" 11#include "quantum.h"
9 12
diff --git a/keyboards/nyquist/rev1/config.h b/keyboards/nyquist/rev1/config.h
index 4430f254c..61bcb80e2 100644
--- a/keyboards/nyquist/rev1/config.h
+++ b/keyboards/nyquist/rev1/config.h
@@ -1,5 +1,5 @@
1/* 1/*
2Copyright 2017 Danny Nguyen <danny@hexwire.com> 2Copyright 2017 Danny Nguyen <danny@keeb.io>
3 3
4This program is free software: you can redistribute it and/or modify 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 5it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
21#include QMK_KEYBOARD_CONFIG_H 21#include QMK_KEYBOARD_CONFIG_H
22 22
23/* USB Device descriptor parameter */ 23/* USB Device descriptor parameter */
24#define VENDOR_ID 0xCEEB 24#define VENDOR_ID 0xCB10
25#define PRODUCT_ID 0x1156 25#define PRODUCT_ID 0x1156
26#define DEVICE_VER 0x0100 26#define DEVICE_VER 0x0100
27#define MANUFACTURER Keebio 27#define MANUFACTURER Keebio
diff --git a/keyboards/nyquist/rev2/config.h b/keyboards/nyquist/rev2/config.h
new file mode 100644
index 000000000..75d2e9393
--- /dev/null
+++ b/keyboards/nyquist/rev2/config.h
@@ -0,0 +1,86 @@
1/*
2Copyright 2017 Danny Nguyen <danny@keeb.io>
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#ifndef REV2_CONFIG_H
19#define REV2_CONFIG_H
20
21#include QMK_KEYBOARD_CONFIG_H
22
23/* USB Device descriptor parameter */
24#define VENDOR_ID 0xCB10
25#define PRODUCT_ID 0x1156
26#define DEVICE_VER 0x0200
27#define MANUFACTURER Keebio
28#define PRODUCT The Nyquist Keyboard
29#define DESCRIPTION Split 60 percent ortholinear keyboard
30
31/* key matrix size */
32// Rows are doubled-up
33#define MATRIX_ROWS 10
34#define MATRIX_COLS 6
35
36// wiring of each half
37#define MATRIX_ROW_PINS { D4, D7, E6, B4, B5 }
38#define MATRIX_COL_PINS { D2, F5, F6, F7, B1, B3 }
39
40/* COL2ROW or ROW2COL */
41#define DIODE_DIRECTION COL2ROW
42
43/* define if matrix has ghost */
44//#define MATRIX_HAS_GHOST
45
46/* Set 0 if debouncing isn't needed */
47#define DEBOUNCING_DELAY 5
48
49/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
50#define LOCKING_SUPPORT_ENABLE
51/* Locking resynchronize hack */
52#define LOCKING_RESYNC_ENABLE
53
54/* key combination for command */
55#define IS_COMMAND() ( \
56 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
57)
58
59/* ws2812 RGB LED */
60#define RGB_DI_PIN D3
61#define RGBLIGHT_TIMER
62#define RGBLED_NUM 16 // Number of LEDs
63
64/* Backlight LEDs */
65#define BACKLIGHT_PIN B6
66#define BACKLIGHT_LEVELS 7
67
68/*
69 * Feature disable options
70 * These options are also useful to firmware size reduction.
71 */
72
73/* disable debug print */
74// #define NO_DEBUG
75
76/* disable print */
77// #define NO_PRINT
78
79/* disable action features */
80//#define NO_ACTION_LAYER
81//#define NO_ACTION_TAPPING
82//#define NO_ACTION_ONESHOT
83//#define NO_ACTION_MACRO
84//#define NO_ACTION_FUNCTION
85
86#endif
diff --git a/keyboards/nyquist/rev2/rev2.c b/keyboards/nyquist/rev2/rev2.c
new file mode 100644
index 000000000..9922b8995
--- /dev/null
+++ b/keyboards/nyquist/rev2/rev2.c
@@ -0,0 +1,21 @@
1#include "rev2.h"
2
3#ifdef SSD1306OLED
4void led_set_kb(uint8_t usb_led) {
5 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
6 led_set_user(usb_led);
7}
8#endif
9
10void matrix_init_kb(void) {
11
12 // // green led on
13 // DDRD |= (1<<5);
14 // PORTD &= ~(1<<5);
15
16 // // orange led on
17 // DDRB |= (1<<0);
18 // PORTB &= ~(1<<0);
19
20 matrix_init_user();
21};
diff --git a/keyboards/nyquist/rev2/rev2.h b/keyboards/nyquist/rev2/rev2.h
new file mode 100644
index 000000000..1eec5d2be
--- /dev/null
+++ b/keyboards/nyquist/rev2/rev2.h
@@ -0,0 +1,68 @@
1#ifndef REV2_H
2#define REV2_H
3
4#include "nyquist.h"
5
6//void promicro_bootloader_jmp(bool program);
7#include "quantum.h"
8
9
10#ifdef USE_I2C
11#include <stddef.h>
12#ifdef __AVR__
13 #include <avr/io.h>
14 #include <avr/interrupt.h>
15#endif
16#endif
17
18//void promicro_bootloader_jmp(bool program);
19
20#ifndef FLIP_HALF
21// Standard Keymap
22// (TRRS jack on the left half is to the right, TRRS jack on the right half is to the left)
23#define LAYOUT( \
24 L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
25 L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
26 L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
27 L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35, \
28 L40, L41, L42, L43, L44, L45, R40, R41, R42, R43, R44, R45 \
29 ) \
30 { \
31 { L00, L01, L02, L03, L04, L05 }, \
32 { L10, L11, L12, L13, L14, L15 }, \
33 { L20, L21, L22, L23, L24, L25 }, \
34 { L30, L31, L32, L33, L34, L35 }, \
35 { L40, L41, L42, L43, L44, L45 }, \
36 { R05, R04, R03, R02, R01, R00 }, \
37 { R15, R14, R13, R12, R11, R10 }, \
38 { R25, R24, R23, R22, R21, R20 }, \
39 { R35, R34, R33, R32, R31, R30 }, \
40 { R45, R44, R43, R42, R41, R40 } \
41 }
42#else
43// Keymap with right side flipped
44// (TRRS jack on both halves are to the right)
45#define LAYOUT( \
46 L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
47 L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
48 L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
49 L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35, \
50 L40, L41, L42, L43, L44, L45, R40, R41, R42, R43, R44, R45 \
51 ) \
52 { \
53 { L00, L01, L02, L03, L04, L05 }, \
54 { L10, L11, L12, L13, L14, L15 }, \
55 { L20, L21, L22, L23, L24, L25 }, \
56 { L30, L31, L32, L33, L34, L35 }, \
57 { L40, L41, L42, L43, L44, L45 }, \
58 { R00, R01, R02, R03, R04, R05 }, \
59 { R10, R11, R12, R13, R14, R15 }, \
60 { R20, R21, R22, R23, R24, R25 }, \
61 { R30, R31, R32, R33, R34, R35 }, \
62 { R40, R41, R42, R43, R44, R45 } \
63 }
64#endif
65
66#define LAYOUT_ortho_5x12 LAYOUT
67
68#endif
diff --git a/keyboards/nyquist/rev2/rules.mk b/keyboards/nyquist/rev2/rules.mk
new file mode 100644
index 000000000..bd518d8f2
--- /dev/null
+++ b/keyboards/nyquist/rev2/rules.mk
@@ -0,0 +1 @@
BACKLIGHT_ENABLE = yes
diff --git a/keyboards/nyquist/rules.mk b/keyboards/nyquist/rules.mk
index 971cd188a..840628e1c 100644
--- a/keyboards/nyquist/rules.mk
+++ b/keyboards/nyquist/rules.mk
@@ -64,7 +64,6 @@ AUDIO_ENABLE = no # Audio output on port C6
64UNICODE_ENABLE = no # Unicode 64UNICODE_ENABLE = no # Unicode
65BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 65BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
66RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. 66RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
67SUBPROJECT_rev1 = yes
68USE_I2C = yes 67USE_I2C = yes
69# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 68# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
70SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 69SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend