From 06de8fd106103b834bb4aa37f7fe0fe514c406df Mon Sep 17 00:00:00 2001 From: Nick Christus <136611+nchristus@users.noreply.github.com> Date: Fri, 30 Aug 2019 19:39:35 -0500 Subject: [PATCH] [Keyboard] Add Caravan keyboard (#6630) * added caravan keyboard * updates per PR review * updated bootmagic setting * updated LAYOUT * updated imgur url --- keyboards/thevankeyboards/caravan/caravan.c | 1 + keyboards/thevankeyboards/caravan/caravan.h | 15 ++++++ keyboards/thevankeyboards/caravan/config.h | 46 +++++++++++++++++++ .../caravan/keymaps/default/config.h | 1 + .../caravan/keymaps/default/keymap.c | 10 ++++ .../caravan/keymaps/default/readme.md | 1 + keyboards/thevankeyboards/caravan/readme.md | 15 ++++++ keyboards/thevankeyboards/caravan/rules.mk | 28 +++++++++++ 8 files changed, 117 insertions(+) create mode 100644 keyboards/thevankeyboards/caravan/caravan.c create mode 100644 keyboards/thevankeyboards/caravan/caravan.h create mode 100644 keyboards/thevankeyboards/caravan/config.h create mode 100644 keyboards/thevankeyboards/caravan/keymaps/default/config.h create mode 100644 keyboards/thevankeyboards/caravan/keymaps/default/keymap.c create mode 100644 keyboards/thevankeyboards/caravan/keymaps/default/readme.md create mode 100644 keyboards/thevankeyboards/caravan/readme.md create mode 100644 keyboards/thevankeyboards/caravan/rules.mk diff --git a/keyboards/thevankeyboards/caravan/caravan.c b/keyboards/thevankeyboards/caravan/caravan.c new file mode 100644 index 0000000000..c4fa14f0c1 --- /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 0000000000..43bd846ab6 --- /dev/null +++ b/keyboards/thevankeyboards/caravan/caravan.h @@ -0,0 +1,15 @@ +#pragma once + +#include "quantum.h" + +#define LAYOUT( \ + K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \ + K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \ + K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \ + K30, K31, K32, K33, K37, K38, K39, K3B \ +) { \ + { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \ + { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \ + { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \ + { K30, K31, K32, K33, KC_NO, KC_NO, KC_NO, K37, K38, K39, KC_NO, K3B } \ +} diff --git a/keyboards/thevankeyboards/caravan/config.h b/keyboards/thevankeyboards/caravan/config.h new file mode 100644 index 0000000000..690666e16e --- /dev/null +++ b/keyboards/thevankeyboards/caravan/config.h @@ -0,0 +1,46 @@ +/* +Copyright 2012 Jun Wako + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + +#pragma once +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0xFEAE +#define PRODUCT_ID 0x8844 +#define DEVICE_VER 0x0001 +#define MANUFACTURER TheVan Keyboards +#define PRODUCT Caravan +#define DESCRIPTION QMK keyboard firmware for Caravan + +/* key matrix size */ +#define MATRIX_ROWS 4 +#define MATRIX_COLS 12 + +#define MATRIX_ROW_PINS { B0, B1, B2, B3 } +#define MATRIX_COL_PINS { F1, F4, F5, B4, B5, B6, B7, D2, D3, D5, D4, D6 } +#define UNUSED_PINS + +/* COL2ROW or ROW2COL */ +#define DIODE_DIRECTION COL2ROW + +/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ +#define DEBOUNCE 5 + +/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ +#define LOCKING_SUPPORT_ENABLE +/* Locking resynchronize hack */ +#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 0000000000..6f70f09bee --- /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 0000000000..6ca59067d9 --- /dev/null +++ b/keyboards/thevankeyboards/caravan/keymaps/default/keymap.c @@ -0,0 +1,10 @@ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT( /* Qwerty */ + KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, + 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_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, + KC_LCTL, KC_LALT, KC_LGUI, KC_ENT, KC_SPC, KC_RALT, KC_ESC, KC_RCTL + ) +}; diff --git a/keyboards/thevankeyboards/caravan/keymaps/default/readme.md b/keyboards/thevankeyboards/caravan/keymaps/default/readme.md new file mode 100644 index 0000000000..2e3e33c9aa --- /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 0000000000..ef98a51ced --- /dev/null +++ b/keyboards/thevankeyboards/caravan/readme.md @@ -0,0 +1,15 @@ +# Caravan + +![Caravan](https://i.imgur.com/psOWk3I.jpg) + +A compact split 44% keyboard. + +Keyboard Maintainer: QMK Community +Hardware Supported: Caravan PCB +Hardware Availability: N/A + +Make example for this keyboard (after setting up your build environment): + + make thevankeyboards/caravan:default + +See 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 0000000000..6143ed9a66 --- /dev/null +++ b/keyboards/thevankeyboards/caravan/rules.mk @@ -0,0 +1,28 @@ +# MCU name +MCU = atmega32u4 + + +# Bootloader selection +# Teensy halfkay +# Pro Micro caterina +# Atmel DFU atmel-dfu +# LUFA DFU lufa-dfu +# QMK DFU qmk-dfu +# atmega32a bootloadHID +BOOTLOADER = atmel-dfu + + +# Build Options +# change yes to no to disable +# +BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000) +MOUSEKEY_ENABLE = no # Mouse keys(+4700) +EXTRAKEY_ENABLE = yes # Audio control and System control(+450) +CONSOLE_ENABLE = yes # Console for debug(+400) +COMMAND_ENABLE = no # Commands for debug and configuration +NKRO_ENABLE = yes # USB Nkey Rollover +BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default +MIDI_ENABLE = no # MIDI controls +UNICODE_ENABLE = no # Unicode +BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID +AUDIO_ENABLE = no # Audio output on port C6