aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Christus <136611+nchristus@users.noreply.github.com>2019-08-30 19:39:35 -0500
committerDrashna Jaelre <drashna@live.com>2019-08-30 17:39:35 -0700
commit06de8fd106103b834bb4aa37f7fe0fe514c406df (patch)
treed15e8b8704a135c3aaec62aac517edd78a2f8c19
parent8de164e0361c82bd3a58d5c97078c92f4550aa7a (diff)
downloadqmk_firmware-06de8fd106103b834bb4aa37f7fe0fe514c406df.tar.gz
qmk_firmware-06de8fd106103b834bb4aa37f7fe0fe514c406df.zip
[Keyboard] Add Caravan keyboard (#6630)
* added caravan keyboard * updates per PR review * updated bootmagic setting * updated LAYOUT * updated imgur url
-rw-r--r--keyboards/thevankeyboards/caravan/caravan.c1
-rw-r--r--keyboards/thevankeyboards/caravan/caravan.h15
-rw-r--r--keyboards/thevankeyboards/caravan/config.h46
-rw-r--r--keyboards/thevankeyboards/caravan/keymaps/default/config.h1
-rw-r--r--keyboards/thevankeyboards/caravan/keymaps/default/keymap.c10
-rw-r--r--keyboards/thevankeyboards/caravan/keymaps/default/readme.md1
-rw-r--r--keyboards/thevankeyboards/caravan/readme.md15
-rw-r--r--keyboards/thevankeyboards/caravan/rules.mk28
8 files changed, 117 insertions, 0 deletions
diff --git a/keyboards/thevankeyboards/caravan/caravan.c b/keyboards/thevankeyboards/caravan/caravan.c
new file mode 100644
index 000000000..c4fa14f0c
--- /dev/null
+++ b/keyboards/thevankeyboards/caravan/caravan.c
@@ -0,0 +1 @@
#include "caravan.h"
diff --git a/keyboards/thevankeyboards/caravan/caravan.h b/keyboards/thevankeyboards/caravan/caravan.h
new file mode 100644
index 000000000..43bd846ab
--- /dev/null
+++ b/keyboards/thevankeyboards/caravan/caravan.h
@@ -0,0 +1,15 @@
1#pragma once
2
3#include "quantum.h"
4
5#define LAYOUT( \
6 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
7 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
8 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
9 K30, K31, K32, K33, K37, K38, K39, K3B \
10) { \
11 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
12 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
13 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
14 { K30, K31, K32, K33, KC_NO, KC_NO, KC_NO, K37, K38, K39, KC_NO, K3B } \
15}
diff --git a/keyboards/thevankeyboards/caravan/config.h b/keyboards/thevankeyboards/caravan/config.h
new file mode 100644
index 000000000..690666e16
--- /dev/null
+++ b/keyboards/thevankeyboards/caravan/config.h
@@ -0,0 +1,46 @@
1/*
2Copyright 2012 Jun Wako <wakojun@gmail.com>
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#pragma once
19#include "config_common.h"
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0xFEAE
23#define PRODUCT_ID 0x8844
24#define DEVICE_VER 0x0001
25#define MANUFACTURER TheVan Keyboards
26#define PRODUCT Caravan
27#define DESCRIPTION QMK keyboard firmware for Caravan
28
29/* key matrix size */
30#define MATRIX_ROWS 4
31#define MATRIX_COLS 12
32
33#define MATRIX_ROW_PINS { B0, B1, B2, B3 }
34#define MATRIX_COL_PINS { F1, F4, F5, B4, B5, B6, B7, D2, D3, D5, D4, D6 }
35#define UNUSED_PINS
36
37/* COL2ROW or ROW2COL */
38#define DIODE_DIRECTION COL2ROW
39
40/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
41#define DEBOUNCE 5
42
43/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
44#define LOCKING_SUPPORT_ENABLE
45/* Locking resynchronize hack */
46#define LOCKING_RESYNC_ENABLE
diff --git a/keyboards/thevankeyboards/caravan/keymaps/default/config.h b/keyboards/thevankeyboards/caravan/keymaps/default/config.h
new file mode 100644
index 000000000..6f70f09be
--- /dev/null
+++ b/keyboards/thevankeyboards/caravan/keymaps/default/config.h
@@ -0,0 +1 @@
#pragma once
diff --git a/keyboards/thevankeyboards/caravan/keymaps/default/keymap.c b/keyboards/thevankeyboards/caravan/keymaps/default/keymap.c
new file mode 100644
index 000000000..6ca59067d
--- /dev/null
+++ b/keyboards/thevankeyboards/caravan/keymaps/default/keymap.c
@@ -0,0 +1,10 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 [0] = LAYOUT( /* Qwerty */
5 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
6 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
7 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
8 KC_LCTL, KC_LALT, KC_LGUI, KC_ENT, KC_SPC, KC_RALT, KC_ESC, KC_RCTL
9 )
10};
diff --git a/keyboards/thevankeyboards/caravan/keymaps/default/readme.md b/keyboards/thevankeyboards/caravan/keymaps/default/readme.md
new file mode 100644
index 000000000..2e3e33c9a
--- /dev/null
+++ b/keyboards/thevankeyboards/caravan/keymaps/default/readme.md
@@ -0,0 +1 @@
# Default Caravan Layout
diff --git a/keyboards/thevankeyboards/caravan/readme.md b/keyboards/thevankeyboards/caravan/readme.md
new file mode 100644
index 000000000..ef98a51ce
--- /dev/null
+++ b/keyboards/thevankeyboards/caravan/readme.md
@@ -0,0 +1,15 @@
1# Caravan
2
3![Caravan](https://i.imgur.com/psOWk3I.jpg)
4
5A compact split 44% keyboard.
6
7Keyboard Maintainer: QMK Community
8Hardware Supported: Caravan PCB
9Hardware Availability: N/A
10
11Make example for this keyboard (after setting up your build environment):
12
13 make thevankeyboards/caravan:default
14
15See 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).
diff --git a/keyboards/thevankeyboards/caravan/rules.mk b/keyboards/thevankeyboards/caravan/rules.mk
new file mode 100644
index 000000000..6143ed9a6
--- /dev/null
+++ b/keyboards/thevankeyboards/caravan/rules.mk
@@ -0,0 +1,28 @@
1# MCU name
2MCU = atmega32u4
3
4
5# Bootloader selection
6# Teensy halfkay
7# Pro Micro caterina
8# Atmel DFU atmel-dfu
9# LUFA DFU lufa-dfu
10# QMK DFU qmk-dfu
11# atmega32a bootloadHID
12BOOTLOADER = atmel-dfu
13
14
15# Build Options
16# change yes to no to disable
17#
18BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000)
19MOUSEKEY_ENABLE = no # Mouse keys(+4700)
20EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
21CONSOLE_ENABLE = yes # Console for debug(+400)
22COMMAND_ENABLE = no # Commands for debug and configuration
23NKRO_ENABLE = yes # USB Nkey Rollover
24BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
25MIDI_ENABLE = no # MIDI controls
26UNICODE_ENABLE = no # Unicode
27BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
28AUDIO_ENABLE = no # Audio output on port C6