summaryrefslogtreecommitdiff
path: root/keyboards/wsk/pain27
diff options
context:
space:
mode:
authorworldspawn00 <mcmancuso@gmail.com>2020-02-07 21:42:03 -0600
committerGitHub <noreply@github.com>2020-02-07 19:42:03 -0800
commit610cf729af9e4499702b88091a2f06ec0235d0b4 (patch)
tree5de0bcd62311cad9a2835cd9f5abff00fcd5a58d /keyboards/wsk/pain27
parent96a4388c437cedb7143c83df22cbf31090899611 (diff)
downloadqmk_firmware-610cf729af9e4499702b88091a2f06ec0235d0b4.tar.gz
qmk_firmware-610cf729af9e4499702b88091a2f06ec0235d0b4.zip
[Keyboard] adding keyboard: pain27 (#7977)
* pain27 * Applied review suggestions * Correct DEBOUNCE verbiage, remove .ini files * Readme tweaks Co-authored-by: ridingqwerty <george.g.koenig@gmail.com>
Diffstat (limited to 'keyboards/wsk/pain27')
-rw-r--r--keyboards/wsk/pain27/config.h48
-rw-r--r--keyboards/wsk/pain27/info.json12
-rw-r--r--keyboards/wsk/pain27/keymaps/default/keymap.c18
-rw-r--r--keyboards/wsk/pain27/pain27.c1
-rw-r--r--keyboards/wsk/pain27/pain27.h14
-rw-r--r--keyboards/wsk/pain27/readme.md16
-rw-r--r--keyboards/wsk/pain27/rules.mk26
7 files changed, 135 insertions, 0 deletions
diff --git a/keyboards/wsk/pain27/config.h b/keyboards/wsk/pain27/config.h
new file mode 100644
index 0000000000..48894fd1e0
--- /dev/null
+++ b/keyboards/wsk/pain27/config.h
@@ -0,0 +1,48 @@
+#pragma once
+
+#include "config_common.h"
+
+/* USB Device descriptor parameter */
+#define VENDOR_ID 0xFEED
+#define PRODUCT_ID 0x9E8C
+#define DEVICE_VER 0x0001
+#define MANUFACTURER Worldspawn00
+#define PRODUCT PAIN27
+#define DESCRIPTION A 27-key Keyboard
+
+/* key matrix size */
+#define MATRIX_ROWS 3
+#define MATRIX_COLS 10
+
+/* key matrix pins */
+#define MATRIX_ROW_PINS { F4, F5, D0 }
+#define MATRIX_COL_PINS { D2, B3, F6, B1, B2, B6, D4, C6, D7, E6 }
+#define UNUSED_PINS
+
+/* COL2ROW or ROW2COL */
+#define DIODE_DIRECTION COL2ROW
+
+/* number of backlight levels */
+
+#ifdef BACKLIGHT_PIN
+#define BACKLIGHT_LEVELS 3
+#endif
+
+/* Set 0 if debouncing isn't 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
+
+#define RGB_DI_PIN D1
+#ifdef RGB_DI_PIN
+#define RGBLIGHT_ANIMATIONS
+#define RGBLED_NUM 8
+#define RGBLIGHT_HUE_STEP 8
+#define RGBLIGHT_SAT_STEP 8
+#define RGBLIGHT_VAL_STEP 8
+#endif
+
diff --git a/keyboards/wsk/pain27/info.json b/keyboards/wsk/pain27/info.json
new file mode 100644
index 0000000000..07eecacb6a
--- /dev/null
+++ b/keyboards/wsk/pain27/info.json
@@ -0,0 +1,12 @@
+{
+ "keyboard_name": "Pain27v2",
+ "url": "https://qmk.fm/keyboards",
+ "maintainer": "worldspawn00",
+ "width": 11,
+ "height": 4,
+ "layouts": {
+ "LAYOUT": {
+ "layout": [{"label":"Q", "x":1, "y":0}, {"label":"W", "x":2, "y":0}, {"label":"E", "x":3, "y":0}, {"label":"R", "x":4, "y":0}, {"label":"T", "x":5, "y":0}, {"label":"Y", "x":6, "y":0}, {"label":"U", "x":7, "y":0}, {"label":"I", "x":8, "y":0}, {"label":"O", "x":9, "y":0}, {"label":"P", "x":10, "y":0}, {"label":"A", "x":1.25, "y":1}, {"label":"S", "x":2.25, "y":1}, {"label":"D", "x":3.25, "y":1}, {"label":"F", "x":4.25, "y":1}, {"label":"G", "x":5.25, "y":1}, {"label":"H", "x":6.25, "y":1}, {"label":"J", "x":7.25, "y":1}, {"label":"K", "x":8.25, "y":1}, {"label":"L", "x":9.25, "y":1}, {"label":"Z", "x":1.75, "y":2}, {"label":"X", "x":2.75, "y":2}, {"label":"C", "x":3.75, "y":2}, {"label":"V", "x":4.75, "y":2}, {"label":"B", "x":5.75, "y":2}, {"label":"N", "x":6.75, "y":2}, {"label":"M", "x":7.75, "y":2}, {"x":3.25, "y":3, "w":6.25}]
+ }
+ }
+} \ No newline at end of file
diff --git a/keyboards/wsk/pain27/keymaps/default/keymap.c b/keyboards/wsk/pain27/keymaps/default/keymap.c
new file mode 100644
index 0000000000..54098287ef
--- /dev/null
+++ b/keyboards/wsk/pain27/keymaps/default/keymap.c
@@ -0,0 +1,18 @@
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT(KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
+ KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L,
+ MT(MOD_LCTL, KC_Z), MT(MOD_LALT, KC_X), LT(1, KC_C), LT(2, KC_V), MT(MOD_RGUI,KC_B), MT(MOD_RALT, KC_N), MT(MOD_RCTL, KC_M), MT(MOD_LSFT, KC_SPC)),
+ [1] = LAYOUT(KC_ESC, KC_MUTE, KC_VOLD, KC_VOLU, KC_MPLY, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_BSPC,
+ KC_TAB, RGB_TOG, RGB_VAD, RGB_VAI, RGB_MOD, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT,
+ KC_LCTL, KC_LALT, KC_TRNS, MO(3), KC_RGUI, KC_RALT, KC_RCTL, KC_NO),
+ [2] = LAYOUT(KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
+ KC_GRV, KC_BSLS, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_SCLN, KC_QUOT, KC_ENT,
+ KC_LCTL, KC_LALT, MO(3), KC_TRNS, KC_COMM, KC_DOT, KC_SLSH, KC_NO),
+ [3] = LAYOUT(KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
+ KC_F11, KC_F12, RGB_SPD, RGB_SPI, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, KC_DEL,
+ KC_LCTL, KC_LALT, KC_TRNS, KC_TRNS, KC_RGUI, KC_RALT, KC_RCTL, KC_NO)
+
+};
+
diff --git a/keyboards/wsk/pain27/pain27.c b/keyboards/wsk/pain27/pain27.c
new file mode 100644
index 0000000000..8fa76871f1
--- /dev/null
+++ b/keyboards/wsk/pain27/pain27.c
@@ -0,0 +1 @@
+#include "pain27.h"
diff --git a/keyboards/wsk/pain27/pain27.h b/keyboards/wsk/pain27/pain27.h
new file mode 100644
index 0000000000..918b1aaf1e
--- /dev/null
+++ b/keyboards/wsk/pain27/pain27.h
@@ -0,0 +1,14 @@
+#pragma once
+
+#include "quantum.h"
+
+#define LAYOUT( \
+ K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, \
+ K100, K101, K102, K103, K104, K105, K106, K107, K108, \
+ K200, K201, K202, K203, K204, K205, K206, K207 \
+) { \
+ { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009 }, \
+ { K100, K101, K102, K103, K104, K105, K106, K107, K108, KC_NO }, \
+ { K200, K201, K202, K203, K204, K205, K206, K207, KC_NO, KC_NO } \
+}
+
diff --git a/keyboards/wsk/pain27/readme.md b/keyboards/wsk/pain27/readme.md
new file mode 100644
index 0000000000..1813de8136
--- /dev/null
+++ b/keyboards/wsk/pain27/readme.md
@@ -0,0 +1,16 @@
+# Pain27v2
+
+![Pain27v2](https://i.imgur.com/qJZlelV.png)
+
+The Pain27v2 is an adaptation of the original Pain27 board by jonathan(uuupah), adding RGB LEDs and moving the controller under the keys.
+
+* Keyboard Maintainer: [worldspawn00](https://github.com/worldspawn00/)
+* Hardware Supported: The Pain27v2 PCB and kit.
+* Hardware Availability: [PCB & Kit](https://geekhack.org/index.php?topic=100283)
+
+Make example for this keyboard (after setting up your build environment):
+
+ make wsk/pain27: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/wsk/pain27/rules.mk b/keyboards/wsk/pain27/rules.mk
new file mode 100644
index 0000000000..8b5c7c51b8
--- /dev/null
+++ b/keyboards/wsk/pain27/rules.mk
@@ -0,0 +1,26 @@
+# 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
+# ATmega328P USBasp
+BOOTLOADER = caterina
+
+# Build Options
+# comment out to disable the options.
+#
+BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
+MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
+EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
+CONSOLE_ENABLE = no # Console for debug(+400)
+COMMAND_ENABLE = no # Commands for debug and configuration
+SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
+NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
+BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
+AUDIO_ENABLE = no
+RGBLIGHT_ENABLE = yes