aboutsummaryrefslogtreecommitdiff
path: root/keyboards/crkbd
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/crkbd')
-rw-r--r--keyboards/crkbd/config.h21
-rw-r--r--keyboards/crkbd/post_config.h31
-rw-r--r--keyboards/crkbd/readme.md6
-rw-r--r--keyboards/crkbd/rev1/config.h11
-rw-r--r--keyboards/crkbd/rules.mk40
5 files changed, 72 insertions, 37 deletions
diff --git a/keyboards/crkbd/config.h b/keyboards/crkbd/config.h
index d7a347473..f354efbb4 100644
--- a/keyboards/crkbd/config.h
+++ b/keyboards/crkbd/config.h
@@ -21,20 +21,22 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
21#include "config_common.h" 21#include "config_common.h"
22 22
23/* USB Device descriptor parameter */ 23/* USB Device descriptor parameter */
24#define VENDOR_ID 0x4653 24#define VENDOR_ID 0x4653
25#define PRODUCT_ID 0x0001 25#define PRODUCT_ID 0x0001
26#define DEVICE_VER 0x0001 26#define DEVICE_VER 0x0001
27#define MANUFACTURER foostan 27#define MANUFACTURER foostan
28#define PRODUCT Corne 28#define PRODUCT Corne
29 29
30/* key matrix size */ 30/* key matrix size */
31// Rows are doubled-up 31// Rows are doubled-up
32#define MATRIX_ROWS 8 32#define MATRIX_ROWS 8
33#define MATRIX_COLS 6 33#define MATRIX_COLS 6
34#define MATRIX_ROW_PINS { D4, C6, D7, E6 } 34#define MATRIX_ROW_PINS \
35 { D4, C6, D7, E6 }
35 36
36// wiring of each half 37// wiring of each half
37#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3 } 38#define MATRIX_COL_PINS \
39 { F4, F5, F6, F7, B1, B3 }
38// #define MATRIX_COL_PINS { B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order 40// #define MATRIX_COL_PINS { B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order
39 41
40/* define if matrix has ghost */ 42/* define if matrix has ghost */
@@ -51,7 +53,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
51/* Locking resynchronize hack */ 53/* Locking resynchronize hack */
52//#define LOCKING_RESYNC_ENABLE 54//#define LOCKING_RESYNC_ENABLE
53 55
54
55/* 56/*
56 * Feature disable options 57 * Feature disable options
57 * These options are also useful to firmware size reduction. 58 * These options are also useful to firmware size reduction.
diff --git a/keyboards/crkbd/post_config.h b/keyboards/crkbd/post_config.h
new file mode 100644
index 000000000..e9b0e09dd
--- /dev/null
+++ b/keyboards/crkbd/post_config.h
@@ -0,0 +1,31 @@
1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
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
17#pragma once
18
19#ifndef BOOTMAGIC_LITE_ROW
20# define BOOTMAGIC_LITE_ROW 0
21#endif
22#ifndef BOOTMAGIC_LITE_COLUMN
23# define BOOTMAGIC_LITE_COLUMN 1
24#endif
25
26#ifndef BOOTMAGIC_LITE_ROW_RIGHT
27# define BOOTMAGIC_LITE_ROW_RIGHT 4
28#endif
29#ifndef BOOTMAGIC_LITE_COLUMN_RIGHT
30# define BOOTMAGIC_LITE_COLUMN_RIGHT 1
31#endif
diff --git a/keyboards/crkbd/readme.md b/keyboards/crkbd/readme.md
index 1e5bfb39a..72d44fbbd 100644
--- a/keyboards/crkbd/readme.md
+++ b/keyboards/crkbd/readme.md
@@ -20,6 +20,12 @@ make crkbd:default
20 20
21See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). 21See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
22 22
23## Bootloader
24
25The Corne PCBs have a reset button next to the TRRS jack to enter in to the bootloader.
26
27Additionally, if you hold down the "Q" or "P" buttons when plugging in that half of the keyboard (per the default QWERTY layout), this will jump to the bootloader and reset the EEPROM (persistent storage). This would normally be the very top corner-most position, but due to the breakaway column, it's left at Q and P for compatibility.
28
23## RGB Matrix 29## RGB Matrix
24The Corne Keyboard also supports using the RGB Matrix feature, in place of RGB Light. This provids a better experience when using the keyboard, as it supports a number of per key effects properly. If you're not using the in switch LEDs, then you may want to pass on doing this. 30The Corne Keyboard also supports using the RGB Matrix feature, in place of RGB Light. This provids a better experience when using the keyboard, as it supports a number of per key effects properly. If you're not using the in switch LEDs, then you may want to pass on doing this.
25 31
diff --git a/keyboards/crkbd/rev1/config.h b/keyboards/crkbd/rev1/config.h
index 95ffb6d5b..337859d05 100644
--- a/keyboards/crkbd/rev1/config.h
+++ b/keyboards/crkbd/rev1/config.h
@@ -22,17 +22,20 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
22#define SOFT_SERIAL_PIN D2 22#define SOFT_SERIAL_PIN D2
23 23
24/* ws2812 RGB LED */ 24/* ws2812 RGB LED */
25#define RGB_DI_PIN D3 25#define RGB_DI_PIN D3
26 26
27#ifdef RGBLIGHT_ENABLE 27#ifdef RGBLIGHT_ENABLE
28# define RGBLED_NUM 12 // Number of LEDs 28# define RGBLED_NUM 12 // Number of LEDs
29# define RGBLED_SPLIT \
30 { 6, 6 }
29# define RGBLIGHT_SPLIT 31# define RGBLIGHT_SPLIT
30#endif 32#endif
31 33
32#ifdef RGB_MATRIX_ENABLE 34#ifdef RGB_MATRIX_ENABLE
33# define RGBLED_NUM 54 // Number of LEDs 35# define RGBLED_NUM 54 // Number of LEDs
34# define DRIVER_LED_TOTAL RGBLED_NUM 36# define DRIVER_LED_TOTAL RGBLED_NUM
35# define RGB_MATRIX_SPLIT { 27, 27 } 37# define RGB_MATRIX_SPLIT \
38 { 27, 27 }
36# define SPLIT_TRANSPORT_MIRROR 39# define SPLIT_TRANSPORT_MIRROR
37#endif 40#endif
38 41
diff --git a/keyboards/crkbd/rules.mk b/keyboards/crkbd/rules.mk
index 466d9265f..3adf9adb9 100644
--- a/keyboards/crkbd/rules.mk
+++ b/keyboards/crkbd/rules.mk
@@ -2,39 +2,33 @@
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Bootloader selection 4# Bootloader selection
5# Teensy halfkay
6# Pro Micro caterina
7# Atmel DFU atmel-dfu
8# LUFA DFU lufa-dfu
9# QMK DFU qmk-dfu
10# ATmega32A bootloadHID
11# ATmega328P USBasp
12BOOTLOADER = caterina 5BOOTLOADER = caterina
13 6
14# Build Options 7# Build Options
15# change to "no" to disable the options, or define them in the Makefile in 8# change yes to no to disable
16# the appropriate keymap folder that will get included automatically
17# 9#
18BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration 10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
19MOUSEKEY_ENABLE = yes # Mouse keys 11MOUSEKEY_ENABLE = yes # Mouse keys
20EXTRAKEY_ENABLE = no # Audio control and System control 12EXTRAKEY_ENABLE = yes # Audio control and System control
21CONSOLE_ENABLE = no # Console for debug 13CONSOLE_ENABLE = no # Console for debug
22COMMAND_ENABLE = no # Commands for debug and configuration 14COMMAND_ENABLE = no # Commands for debug and configuration
23NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
24BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality 16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
25MIDI_ENABLE = no # MIDI controls 17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
26AUDIO_ENABLE = no # Audio output on port C6 18NKRO_ENABLE = yes # USB Nkey Rollover
27UNICODE_ENABLE = no # Unicode 19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
28BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
29RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. 21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
30RGB_MATRIX_ENABLE = no 23RGB_MATRIX_ENABLE = no
31RGB_MATRIX_DRIVER = WS2812 24RGB_MATRIX_DRIVER = WS2812
32 25
33# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
34SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
35
36# if firmware size over limit, try this option 26# if firmware size over limit, try this option
37# LTO_ENABLE = yes 27# LTO_ENABLE = yes
38LAYOUTS = split_3x5_3 split_3x6_3
39 28
40DEFAULT_FOLDER = crkbd/rev1 29DEFAULT_FOLDER = crkbd/rev1
30
31RGBLIGHT_SUPPORTED = yes
32RGB_MATRIX_SUPPORTED = yes
33
34LAYOUTS = split_3x5_3 split_3x6_3