From 5c324ee104c4380a9cb36923d0903c4077fcbec7 Mon Sep 17 00:00:00 2001 From: Danny Date: Tue, 3 Sep 2019 11:43:25 -0400 Subject: [Keyboard] Add Tukey board (#6657) --- keyboards/keebio/tukey/config.h | 58 ++++++++++++++++++++++++ keyboards/keebio/tukey/info.json | 15 ++++++ keyboards/keebio/tukey/keymaps/default/config.h | 19 ++++++++ keyboards/keebio/tukey/keymaps/default/keymap.c | 20 ++++++++ keyboards/keebio/tukey/keymaps/default/readme.md | 1 + keyboards/keebio/tukey/readme.md | 13 ++++++ keyboards/keebio/tukey/rules.mk | 44 ++++++++++++++++++ keyboards/keebio/tukey/tukey.c | 16 +++++++ keyboards/keebio/tukey/tukey.h | 20 ++++++++ 9 files changed, 206 insertions(+) create mode 100644 keyboards/keebio/tukey/config.h create mode 100644 keyboards/keebio/tukey/info.json create mode 100644 keyboards/keebio/tukey/keymaps/default/config.h create mode 100644 keyboards/keebio/tukey/keymaps/default/keymap.c create mode 100644 keyboards/keebio/tukey/keymaps/default/readme.md create mode 100644 keyboards/keebio/tukey/readme.md create mode 100644 keyboards/keebio/tukey/rules.mk create mode 100644 keyboards/keebio/tukey/tukey.c create mode 100644 keyboards/keebio/tukey/tukey.h diff --git a/keyboards/keebio/tukey/config.h b/keyboards/keebio/tukey/config.h new file mode 100644 index 0000000000..d298794f1f --- /dev/null +++ b/keyboards/keebio/tukey/config.h @@ -0,0 +1,58 @@ +/* +Copyright 2019 Keebio + +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 0xCB10 +#define PRODUCT_ID 0x1112 +#define DEVICE_VER 0x0100 +#define MANUFACTURER Keebio +#define PRODUCT Tukey +#define DESCRIPTION 1x2 board for the Big Switch + +/* key matrix size */ +#define MATRIX_ROWS 1 +#define MATRIX_COLS 2 + +/* Keyboard Matrix Assignments */ +#define DIRECT_PINS { { D4, F6 } } + +/* COL2ROW, ROW2COL*/ +#define DIODE_DIRECTION COL2ROW + +#define RGB_DI_PIN D3 +#ifdef RGB_DI_PIN + #define RGBLED_NUM 8 + #define RGBLIGHT_HUE_STEP 8 + #define RGBLIGHT_SAT_STEP 8 + #define RGBLIGHT_VAL_STEP 8 + #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ + #define RGBLIGHT_ANIMATIONS + +#endif + +/* 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/keebio/tukey/info.json b/keyboards/keebio/tukey/info.json new file mode 100644 index 0000000000..a43d1dbbf4 --- /dev/null +++ b/keyboards/keebio/tukey/info.json @@ -0,0 +1,15 @@ +{ + "keyboard_name": "Tukey", + "url": "https://keeb.io", + "maintainer": "nooges", + "width": 2, + "height": 1, + "layouts": { + "LAYOUT": { + "layout": [ + {"x":0, "y":0}, + {"x":1, "y":0} + ] + } + } + } diff --git a/keyboards/keebio/tukey/keymaps/default/config.h b/keyboards/keebio/tukey/keymaps/default/config.h new file mode 100644 index 0000000000..6079c0b0f3 --- /dev/null +++ b/keyboards/keebio/tukey/keymaps/default/config.h @@ -0,0 +1,19 @@ +/* Copyright 2019 Keebio + * + * 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 + +// place overrides here diff --git a/keyboards/keebio/tukey/keymaps/default/keymap.c b/keyboards/keebio/tukey/keymaps/default/keymap.c new file mode 100644 index 0000000000..6a0e29e9f0 --- /dev/null +++ b/keyboards/keebio/tukey/keymaps/default/keymap.c @@ -0,0 +1,20 @@ +/* Copyright 2019 Keebio + * + * 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 . + */ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT(RGB_MOD, KC_ENTER), +}; diff --git a/keyboards/keebio/tukey/keymaps/default/readme.md b/keyboards/keebio/tukey/keymaps/default/readme.md new file mode 100644 index 0000000000..7112da958a --- /dev/null +++ b/keyboards/keebio/tukey/keymaps/default/readme.md @@ -0,0 +1 @@ +# The default keymap for tukey diff --git a/keyboards/keebio/tukey/readme.md b/keyboards/keebio/tukey/readme.md new file mode 100644 index 0000000000..21527b6bf4 --- /dev/null +++ b/keyboards/keebio/tukey/readme.md @@ -0,0 +1,13 @@ +# Tukey + +2-key keyboard for Big Switches + +Keyboard Maintainer: [nooges/Keebio](https://github.com/nooges) +Hardware Supported: Pro Micro, Elite-C +Hardware Availability: [Keebio](https://keeb.io) + +Make example for this keyboard (after setting up your build environment): + + make keebio/tukey: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/keebio/tukey/rules.mk b/keyboards/keebio/tukey/rules.mk new file mode 100644 index 0000000000..ab860459da --- /dev/null +++ b/keyboards/keebio/tukey/rules.mk @@ -0,0 +1,44 @@ +# 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 = caterina + + +# If you don't know the bootloader type, then you can specify the +# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line +# Teensy halfKay 512 +# Teensy++ halfKay 1024 +# Atmel DFU loader 4096 +# LUFA bootloader 4096 +# USBaspLoader 2048 +# OPT_DEFS += -DBOOTLOADER_SIZE=4096 + + +# Build Options +# change yes to no to disable +# +BOOTMAGIC_ENABLE = no # 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 = yes # Commands for debug and configuration +# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE +SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend +# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work +NKRO_ENABLE = no # USB Nkey Rollover +BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality +RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow +MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) +UNICODE_ENABLE = no # Unicode +BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID +AUDIO_ENABLE = no # Audio output on port C6 +FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches +HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) diff --git a/keyboards/keebio/tukey/tukey.c b/keyboards/keebio/tukey/tukey.c new file mode 100644 index 0000000000..a4582370e4 --- /dev/null +++ b/keyboards/keebio/tukey/tukey.c @@ -0,0 +1,16 @@ +/* Copyright 2019 Keebio + * + * 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 . + */ +#include "tukey.h" diff --git a/keyboards/keebio/tukey/tukey.h b/keyboards/keebio/tukey/tukey.h new file mode 100644 index 0000000000..b8e40bb04d --- /dev/null +++ b/keyboards/keebio/tukey/tukey.h @@ -0,0 +1,20 @@ +/* Copyright 2019 Keebio + * + * 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 "quantum.h" + +#define LAYOUT(k00, k01) { {k00, k01} } -- cgit v1.2.3