aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny <nooges@users.noreply.github.com>2019-03-15 17:28:38 -0400
committerDrashna Jaelre <drashna@live.com>2019-03-15 14:28:38 -0700
commit22e499efdb12d277b9847dea8809ba1b717e071f (patch)
treea7de69c593c457357a3e35145d20dff3055b47f4
parent3c257c1c6e1685a2ce37951c26d13bcb8fad749d (diff)
downloadqmk_firmware-22e499efdb12d277b9847dea8809ba1b717e071f.tar.gz
qmk_firmware-22e499efdb12d277b9847dea8809ba1b717e071f.zip
[Keyboard] Add handwired split tester (#5413)
* Add handwired split tester * Update keyboards/handwired/splittest/readme.md Co-Authored-By: nooges <nooges@users.noreply.github.com> * Update keyboards/handwired/splittest/readme.md Co-Authored-By: nooges <nooges@users.noreply.github.com>
-rw-r--r--keyboards/handwired/splittest/config.h75
-rw-r--r--keyboards/handwired/splittest/keymaps/default/config.h23
-rw-r--r--keyboards/handwired/splittest/keymaps/default/keymap.c5
-rw-r--r--keyboards/handwired/splittest/readme.md26
-rw-r--r--keyboards/handwired/splittest/rules.mk65
-rw-r--r--keyboards/handwired/splittest/splittest.c1
-rw-r--r--keyboards/handwired/splittest/splittest.h5
7 files changed, 200 insertions, 0 deletions
diff --git a/keyboards/handwired/splittest/config.h b/keyboards/handwired/splittest/config.h
new file mode 100644
index 000000000..9e4fb38ca
--- /dev/null
+++ b/keyboards/handwired/splittest/config.h
@@ -0,0 +1,75 @@
1/*
2Copyright 2012 Jun Wako <wakojun@gmail.com>
3Copyright 2015 Jack Humbert
4
5This program is free software: you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation, either version 2 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#pragma once
20
21#include "config_common.h"
22
23/* USB Device descriptor parameter */
24#define VENDOR_ID 0xCB10
25#define PRODUCT_ID 0x1111
26#define DEVICE_VER 0x0100
27#define MANUFACTURER Keebio
28#define PRODUCT Split Tester
29#define DESCRIPTION Split keyboard testing unit
30
31/* key matrix size */
32// Rows are doubled-up
33#define MATRIX_ROWS 2
34#define MATRIX_COLS 1
35
36// wiring of each half
37#define MATRIX_ROW_PINS { B3 }
38#define MATRIX_COL_PINS { B6 }
39#define SPLIT_HAND_PIN F6
40#define SOFT_SERIAL_PIN D1
41
42/* define if matrix has ghost */
43//#define MATRIX_HAS_GHOST
44
45/* Set 0 if debouncing isn't needed */
46#define DEBOUNCING_DELAY 5
47
48/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
49#define LOCKING_SUPPORT_ENABLE
50/* Locking resynchronize hack */
51#define LOCKING_RESYNC_ENABLE
52
53/* ws2812 RGB LED */
54#define RGB_DI_PIN D3
55#define RGBLIGHT_ANIMATIONS
56#define RGBLED_NUM 12
57#define RGBLED_SPLIT { 6, 6 }
58
59/*
60 * Feature disable options
61 * These options are also useful to firmware size reduction.
62 */
63
64/* disable debug print */
65// #define NO_DEBUG
66
67/* disable print */
68// #define NO_PRINT
69
70/* disable action features */
71//#define NO_ACTION_LAYER
72//#define NO_ACTION_TAPPING
73//#define NO_ACTION_ONESHOT
74//#define NO_ACTION_MACRO
75//#define NO_ACTION_FUNCTION
diff --git a/keyboards/handwired/splittest/keymaps/default/config.h b/keyboards/handwired/splittest/keymaps/default/config.h
new file mode 100644
index 000000000..ecebd3658
--- /dev/null
+++ b/keyboards/handwired/splittest/keymaps/default/config.h
@@ -0,0 +1,23 @@
1/*
2This is the c configuration file for the keymap
3
4Copyright 2012 Jun Wako <wakojun@gmail.com>
5Copyright 2015 Jack Humbert
6
7This program is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#pragma once
22
23#define USE_I2C
diff --git a/keyboards/handwired/splittest/keymaps/default/keymap.c b/keyboards/handwired/splittest/keymaps/default/keymap.c
new file mode 100644
index 000000000..1c15f6f1d
--- /dev/null
+++ b/keyboards/handwired/splittest/keymaps/default/keymap.c
@@ -0,0 +1,5 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 [0] = LAYOUT(RGB_MOD, RESET)
5};
diff --git a/keyboards/handwired/splittest/readme.md b/keyboards/handwired/splittest/readme.md
new file mode 100644
index 000000000..3dbff32ed
--- /dev/null
+++ b/keyboards/handwired/splittest/readme.md
@@ -0,0 +1,26 @@
1Split Tester
2============
3
4A two-switch tester built using two Pro Micros, mainly intended to test RGB on split keyboards. Seen here: https://www.instagram.com/p/BvCPNzynwrV/
5
6Keyboard Maintainer: [Bakingpy/nooges](https://github.com/nooges)
7Hardware Supported: Pro Micro
8
9Make example for this keyboard (after setting up your build environment):
10
11 make handwired/splittest:default
12
13Example of flashing this keyboard:
14
15 make handwired/splittest:default:avrdude
16
17See 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).
18
19Wiring
20------
21- Add switches to both Pro Micros across B3 and B6 pins
22- Add pull-up resistor to left side between VCC and F6
23- Add pull-down resistors to right side between GND and F6
24- Connect the following pins on both sides together: D0, D1, GND, VCC
25- Add I2C 4.7kOhm resistors between D0 and VCC, and D1 and VCC
26- Wire Di of RGB strip for each half to D2
diff --git a/keyboards/handwired/splittest/rules.mk b/keyboards/handwired/splittest/rules.mk
new file mode 100644
index 000000000..9512c0f64
--- /dev/null
+++ b/keyboards/handwired/splittest/rules.mk
@@ -0,0 +1,65 @@
1# MCU name
2MCU = atmega32u4
3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17#
18# LUFA specific
19#
20# Target architecture (see library "Board Types" documentation).
21ARCH = AVR8
22
23# Input clock frequency.
24# This will define a symbol, F_USB, in all source code files equal to the
25# input clock frequency (before any prescaling is performed) in Hz. This value may
26# differ from F_CPU if prescaling is used on the latter, and is required as the
27# raw input clock is fed directly to the PLL sections of the AVR for high speed
28# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
29# at the end, this will be done automatically to create a 32-bit value in your
30# source code.
31#
32# If no clock division is performed on the input clock inside the AVR (via the
33# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
34F_USB = $(F_CPU)
35
36# Bootloader
37# This definition is optional, and if your keyboard supports multiple bootloaders of
38# different sizes, comment this out, and the correct address will be loaded
39# automatically (+60). See bootloader.mk for all options.
40BOOTLOADER = caterina
41
42# Interrupt driven control endpoint task(+60)
43OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
44
45# Build Options
46# change to "no" to disable the options, or define them in the Makefile in
47# the appropriate keymap folder that will get included automatically
48#
49BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
50MOUSEKEY_ENABLE = no # Mouse keys(+4700)
51EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
52CONSOLE_ENABLE = no # Console for debug(+400)
53COMMAND_ENABLE = yes # Commands for debug and configuration
54NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
55BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
56MIDI_ENABLE = no # MIDI controls
57AUDIO_ENABLE = no # Audio output on port C6
58UNICODE_ENABLE = no # Unicode
59BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
60RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
61
62# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
63SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
64
65SPLIT_KEYBOARD = yes
diff --git a/keyboards/handwired/splittest/splittest.c b/keyboards/handwired/splittest/splittest.c
new file mode 100644
index 000000000..3c919a565
--- /dev/null
+++ b/keyboards/handwired/splittest/splittest.c
@@ -0,0 +1 @@
#include "splittest.h"
diff --git a/keyboards/handwired/splittest/splittest.h b/keyboards/handwired/splittest/splittest.h
new file mode 100644
index 000000000..17b7081a0
--- /dev/null
+++ b/keyboards/handwired/splittest/splittest.h
@@ -0,0 +1,5 @@
1#pragma once
2
3#include "quantum.h"
4
5#define LAYOUT(L1, R1) {{L1}, {R1}}