diff options
| author | worldspawn00 <mcmancuso@gmail.com> | 2020-02-06 09:55:55 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-06 10:55:55 -0500 |
| commit | fe814be287bc0591df87549ea6233eae2177e062 (patch) | |
| tree | c050625f3eca0ad301544bfa4136b33faad12777 /keyboards/wsk | |
| parent | 6a0e155afe607c75bfffe3f10fb73c9337942f52 (diff) | |
| download | qmk_firmware-fe814be287bc0591df87549ea6233eae2177e062.tar.gz qmk_firmware-fe814be287bc0591df87549ea6233eae2177e062.zip | |
[keyboard] adding keyboard: jerkin (#7975)
* jerkin
* Update config.h
* Apply suggestions from code review
Co-Authored-By: Drashna Jaelre <drashna@live.com>
Co-Authored-By: Akaash Suresh <casa.akaash@gmail.com>
* Update rules.mk
* Apply suggestions from code review
* Missing closing parenthesis in one of the suggestions.
* Finalize collaborator suggestions
* One final tweak to standardize MANUFACTURER
Co-authored-by: ridingqwerty <george.g.koenig@gmail.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Akaash Suresh <casa.akaash@gmail.com>
Diffstat (limited to 'keyboards/wsk')
| -rw-r--r-- | keyboards/wsk/jerkin/config.h | 46 | ||||
| -rw-r--r-- | keyboards/wsk/jerkin/info.json | 12 | ||||
| -rw-r--r-- | keyboards/wsk/jerkin/jerkin.c | 1 | ||||
| -rw-r--r-- | keyboards/wsk/jerkin/jerkin.h | 13 | ||||
| -rw-r--r-- | keyboards/wsk/jerkin/keymaps/default/keymap.c | 65 | ||||
| -rw-r--r-- | keyboards/wsk/jerkin/readme.md | 15 | ||||
| -rw-r--r-- | keyboards/wsk/jerkin/rules.mk | 29 |
7 files changed, 181 insertions, 0 deletions
diff --git a/keyboards/wsk/jerkin/config.h b/keyboards/wsk/jerkin/config.h new file mode 100644 index 000000000..20adc99e0 --- /dev/null +++ b/keyboards/wsk/jerkin/config.h | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "config_common.h" | ||
| 4 | |||
| 5 | /* USB Device descriptor parameter */ | ||
| 6 | #define VENDOR_ID 0xFEED | ||
| 7 | #define PRODUCT_ID 0x79AE | ||
| 8 | #define DEVICE_VER 0x0001 | ||
| 9 | #define MANUFACTURER Worldspawn00 | ||
| 10 | #define PRODUCT Jerkin | ||
| 11 | #define DESCRIPTION Alice style 30% board | ||
| 12 | |||
| 13 | /* key matrix size */ | ||
| 14 | #define MATRIX_ROWS 3 | ||
| 15 | #define MATRIX_COLS 13 | ||
| 16 | |||
| 17 | /* key matrix pins */ | ||
| 18 | #define MATRIX_ROW_PINS { B3, B4, B5 } | ||
| 19 | #define MATRIX_COL_PINS { D3, D2, D1, D0, D4, C6, B1, F7, F6, F5, F4, E6, D7 } | ||
| 20 | #define UNUSED_PINS | ||
| 21 | |||
| 22 | /* COL2ROW or ROW2COL */ | ||
| 23 | #define DIODE_DIRECTION COL2ROW | ||
| 24 | |||
| 25 | /* number of backlight levels */ | ||
| 26 | |||
| 27 | #ifdef BACKLIGHT_PIN | ||
| 28 | #define BACKLIGHT_LEVELS 0 | ||
| 29 | #endif | ||
| 30 | |||
| 31 | /* Set 0 if debouncing isn't needed */ | ||
| 32 | #define DEBOUNCE 5 | ||
| 33 | |||
| 34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 35 | #define LOCKING_SUPPORT_ENABLE | ||
| 36 | |||
| 37 | /* Locking resynchronize hack */ | ||
| 38 | #define LOCKING_RESYNC_ENABLE | ||
| 39 | |||
| 40 | #ifdef RGB_DI_PIN | ||
| 41 | #define RGBLIGHT_ANIMATIONS | ||
| 42 | // #define RGBLED_NUM 0 | ||
| 43 | #define RGBLIGHT_HUE_STEP 8 | ||
| 44 | #define RGBLIGHT_SAT_STEP 8 | ||
| 45 | #define RGBLIGHT_VAL_STEP 8 | ||
| 46 | #endif | ||
diff --git a/keyboards/wsk/jerkin/info.json b/keyboards/wsk/jerkin/info.json new file mode 100644 index 000000000..551bbb0b7 --- /dev/null +++ b/keyboards/wsk/jerkin/info.json | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Jerkin", | ||
| 3 | "url": "https://qmk.fm/keyboards", | ||
| 4 | "maintainer": "worldspawn00", | ||
| 5 | "width": 15.5, | ||
| 6 | "height": 6.25, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [{"x":1, "y":0.75}, {"x":2, "y":0.75}, {"x":12, "y":0.75}, {"x":13, "y":0.75}, {"x":14, "y":0.75}, {"x":0.83, "y":1.75, "w":1.25}, {"x":2.08, "y":1.75}, {"x":12.5, "y":1.75}, {"x":13.5, "y":1.75, "w":1.75}, {"x":0.58, "y":2.75, "w":1.75}, {"x":2.33, "y":2.75}, {"x":12.25, "y":2.75}, {"x":13.25, "y":2.75}, {"x":14.25, "y":2.75, "w":1.25}, {"x":3.5, "y":0}, {"x":4.5, "y":0}, {"x":5.5, "y":0}, {"x":6.5, "y":0}, {"x":3.75, "y":1}, {"x":4.75, "y":1}, {"x":5.75, "y":1}, {"x":6.75, "y":1}, {"x":4.25, "y":2}, {"x":5.25, "y":2}, {"x":6.25, "y":2}, {"x":7.25, "y":2}, {"x":-7.0, "y":3.25}, {"x":-6, "y":3.25}, {"x":-5.0, "y":3.25}, {"x":-4, "y":3.25}, {"x":-6.75, "y":4.25}, {"x":-5.75, "y":4.25}, {"x":-4.75, "y":4.25}, {"x":-3.75, "y":4.25}, {"x":-7.25, "y":5.25}, {"x":-6.25, "y":5.25}, {"x":-5.25, "y":5.25}, {"x":-4.25, "y":5.25}] | ||
| 10 | } | ||
| 11 | } | ||
| 12 | } \ No newline at end of file | ||
diff --git a/keyboards/wsk/jerkin/jerkin.c b/keyboards/wsk/jerkin/jerkin.c new file mode 100644 index 000000000..d2ed41709 --- /dev/null +++ b/keyboards/wsk/jerkin/jerkin.c | |||
| @@ -0,0 +1 @@ | |||
| #include "jerkin.h" | |||
diff --git a/keyboards/wsk/jerkin/jerkin.h b/keyboards/wsk/jerkin/jerkin.h new file mode 100644 index 000000000..201a9db13 --- /dev/null +++ b/keyboards/wsk/jerkin/jerkin.h | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "quantum.h" | ||
| 4 | |||
| 5 | #define LAYOUT( \ | ||
| 6 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, \ | ||
| 7 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, \ | ||
| 8 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212 \ | ||
| 9 | ) { \ | ||
| 10 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012 }, \ | ||
| 11 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, KC_NO }, \ | ||
| 12 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212 } \ | ||
| 13 | } | ||
diff --git a/keyboards/wsk/jerkin/keymaps/default/keymap.c b/keyboards/wsk/jerkin/keymaps/default/keymap.c new file mode 100644 index 000000000..38c1195e9 --- /dev/null +++ b/keyboards/wsk/jerkin/keymaps/default/keymap.c | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | enum custom_keycodes {KC_PASTA = SAFE_RANGE}; | ||
| 4 | |||
| 5 | |||
| 6 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 7 | |||
| 8 | [0] = LAYOUT( | ||
| 9 | KC_GESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_BSPC, | ||
| 10 | CTL_T(KC_TAB), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT, LT(2, KC_ENT), | ||
| 11 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, LT(1, KC_SPC), KC_N, KC_M, KC_COMM, ALT_T(KC_DOT), GUI_T(KC_SLSH), SFT_T(KC_DEL)), | ||
| 12 | |||
| 13 | [1] = LAYOUT( | ||
| 14 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_RBRC, KC_BSLS, | ||
| 15 | KC_TRNS, KC_MINS, KC_EQL, KC_BSLS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_SCLN, KC_TRNS, | ||
| 16 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_TRNS), | ||
| 17 | |||
| 18 | [2] = LAYOUT( | ||
| 19 | RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
| 20 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_INS, KC_TRNS, | ||
| 21 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PASTA, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS) | ||
| 22 | |||
| 23 | }; | ||
| 24 | |||
| 25 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 26 | |||
| 27 | if (record->event.pressed) { | ||
| 28 | switch (keycode) { | ||
| 29 | case KC_PASTA: | ||
| 30 | if (record->event.pressed) { | ||
| 31 | SEND_STRING("https://i.imgur.com/dzBrlqc.png"); | ||
| 32 | } | ||
| 33 | break; | ||
| 34 | |||
| 35 | } | ||
| 36 | } | ||
| 37 | return true; | ||
| 38 | } | ||
| 39 | |||
| 40 | void matrix_init_user(void) { | ||
| 41 | // set CapsLock LED to output and low | ||
| 42 | setPinOutput(B2); | ||
| 43 | writePinLow(B2); | ||
| 44 | // set NumLock LED to output and low | ||
| 45 | setPinOutput(B6); | ||
| 46 | writePinLow(B6); | ||
| 47 | |||
| 48 | } | ||
| 49 | |||
| 50 | layer_state_t layer_state_set_user(layer_state_t state) | ||
| 51 | { | ||
| 52 | if (layer_state_cmp(state, 1)) { | ||
| 53 | writePinHigh(B2); | ||
| 54 | } else if (state & (1<<2)) { | ||
| 55 | writePinLow(B2); | ||
| 56 | writePinHigh(B6); | ||
| 57 | } else if (state & (1<<3)) { | ||
| 58 | writePinHigh(B2); | ||
| 59 | writePinHigh(B6); | ||
| 60 | } else { | ||
| 61 | writePinLow(B2); | ||
| 62 | writePinLow(B6); | ||
| 63 | } | ||
| 64 | return state; | ||
| 65 | } | ||
diff --git a/keyboards/wsk/jerkin/readme.md b/keyboards/wsk/jerkin/readme.md new file mode 100644 index 000000000..3dce6a129 --- /dev/null +++ b/keyboards/wsk/jerkin/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # Jerkin | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | An Alice style 30% board. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [Worldspawn00](https://github.com/Worldspawn00) | ||
| 8 | * Hardware Supported: Jerkin PCB | ||
| 9 | * Hardware Availability: https://www.etsy.com/shop/WorldspawnsKeebs | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make wsk/jerkin:default | ||
| 14 | |||
| 15 | 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/jerkin/rules.mk b/keyboards/wsk/jerkin/rules.mk new file mode 100644 index 000000000..7a4212cd7 --- /dev/null +++ b/keyboards/wsk/jerkin/rules.mk | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | # Teensy halfkay | ||
| 6 | # Pro Micro caterina | ||
| 7 | # Atmel DFU atmel-dfu | ||
| 8 | # LUFA DFU lufa-dfu | ||
| 9 | # QMK DFU qmk-dfu | ||
| 10 | # ATmega32A bootloadHID | ||
| 11 | # ATmega328P USBasp | ||
| 12 | BOOTLOADER = caterina | ||
| 13 | |||
| 14 | |||
| 15 | # Build Options | ||
| 16 | # comment out to disable the options. | ||
| 17 | # | ||
| 18 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | ||
| 19 | MOUSEKEY_ENABLE = no # Mouse keys | ||
| 20 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 21 | CONSOLE_ENABLE = no # Console for debug | ||
| 22 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 23 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 24 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 25 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 26 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 27 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 28 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 29 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
