diff options
| -rw-r--r-- | keyboards/handwired/jotanck/config.h | 37 | ||||
| -rw-r--r-- | keyboards/handwired/jotanck/jotanck.c | 6 | ||||
| -rw-r--r-- | keyboards/handwired/jotanck/jotanck.h | 17 | ||||
| -rw-r--r-- | keyboards/handwired/jotanck/keymaps/default/keymap.c | 115 | ||||
| -rw-r--r-- | keyboards/handwired/jotanck/readme.md | 38 | ||||
| -rw-r--r-- | keyboards/handwired/jotanck/rules.mk | 66 |
6 files changed, 279 insertions, 0 deletions
diff --git a/keyboards/handwired/jotanck/config.h b/keyboards/handwired/jotanck/config.h new file mode 100644 index 000000000..7e022eeb0 --- /dev/null +++ b/keyboards/handwired/jotanck/config.h | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "config_common.h" | ||
| 4 | |||
| 5 | /* USB Device descriptor parameter */ | ||
| 6 | #define VENDOR_ID 0xFEED | ||
| 7 | #define PRODUCT_ID 0x6060 | ||
| 8 | #define DEVICE_VER 0x0001 | ||
| 9 | #define MANUFACTURER Jotix | ||
| 10 | #define PRODUCT Jotanck | ||
| 11 | #define DESCRIPTION A Jotantastic compact ortholinear keyboard | ||
| 12 | |||
| 13 | /* key matrix size */ | ||
| 14 | #define MATRIX_ROWS 4 | ||
| 15 | #define MATRIX_COLS 12 | ||
| 16 | |||
| 17 | /* pro_micro pin-out */ | ||
| 18 | #define MATRIX_ROW_PINS { B4, B5, B6, B2 } | ||
| 19 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, D3, D2, D1, D0, D4, C6 } | ||
| 20 | #define UNUSED_PINS | ||
| 21 | |||
| 22 | /* leds */ | ||
| 23 | #define QMK_LED E6 | ||
| 24 | #define BACKLIGHT_LEVELS 3 | ||
| 25 | #define BACKLIGHT_PIN B7 | ||
| 26 | |||
| 27 | /* COL2ROW or ROW2COL */ | ||
| 28 | #define DIODE_DIRECTION COL2ROW | ||
| 29 | |||
| 30 | /* Set 0 if debouncing isn't needed */ | ||
| 31 | #define DEBOUNCING_DELAY 5 | ||
| 32 | |||
| 33 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 34 | #define LOCKING_SUPPORT_ENABLE | ||
| 35 | |||
| 36 | /* Locking resynchronize hack */ | ||
| 37 | #define LOCKING_RESYNC_ENABLE | ||
diff --git a/keyboards/handwired/jotanck/jotanck.c b/keyboards/handwired/jotanck/jotanck.c new file mode 100644 index 000000000..7744570b2 --- /dev/null +++ b/keyboards/handwired/jotanck/jotanck.c | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | #include "jotanck.h" | ||
| 2 | |||
| 3 | void matrix_init_kb(void) { | ||
| 4 | |||
| 5 | matrix_init_user(); | ||
| 6 | } | ||
diff --git a/keyboards/handwired/jotanck/jotanck.h b/keyboards/handwired/jotanck/jotanck.h new file mode 100644 index 000000000..e8dd93eda --- /dev/null +++ b/keyboards/handwired/jotanck/jotanck.h | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "quantum.h" | ||
| 4 | |||
| 5 | |||
| 6 | #define LAYOUT_ortho_4x12( \ | ||
| 7 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \ | ||
| 8 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \ | ||
| 9 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \ | ||
| 10 | k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b \ | ||
| 11 | ) \ | ||
| 12 | { \ | ||
| 13 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b }, \ | ||
| 14 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b }, \ | ||
| 15 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b }, \ | ||
| 16 | { k30, k31, k32, k33, k34, k35, k35, k37, k38, k39, k3a, k3b } \ | ||
| 17 | } | ||
diff --git a/keyboards/handwired/jotanck/keymaps/default/keymap.c b/keyboards/handwired/jotanck/keymaps/default/keymap.c new file mode 100644 index 000000000..77c144890 --- /dev/null +++ b/keyboards/handwired/jotanck/keymaps/default/keymap.c | |||
| @@ -0,0 +1,115 @@ | |||
| 1 | // This is the canonical layout file for the Quantum project. If you want to add another keyboard, | ||
| 2 | // this is the style you want to emulate. | ||
| 3 | |||
| 4 | #include QMK_KEYBOARD_H | ||
| 5 | |||
| 6 | extern keymap_config_t keymap_config; | ||
| 7 | |||
| 8 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
| 9 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
| 10 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
| 11 | // entirely and just use numbers. | ||
| 12 | |||
| 13 | #define _QWERTY 0 | ||
| 14 | #define _LOWER 1 | ||
| 15 | #define _RAISE 2 | ||
| 16 | #define _ADJUST 3 | ||
| 17 | |||
| 18 | enum planck_keycodes { | ||
| 19 | BACKLIT = SAFE_RANGE | ||
| 20 | }; | ||
| 21 | |||
| 22 | #define LOWER MO(_LOWER) | ||
| 23 | #define RAISE MO(_RAISE) | ||
| 24 | |||
| 25 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 26 | |||
| 27 | /* Qwerty | ||
| 28 | * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+ | ||
| 29 | * | esc | Q | W | E | R | T | Y | U | I | O | P | bksp | | ||
| 30 | * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+ | ||
| 31 | * | tab | A | S | D | F | G | H | J | K | L | ; | ' | | ||
| 32 | * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+ | ||
| 33 | * | lshift | Z | X | C | V | B | N | M | , | . | / | enter | | ||
| 34 | * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+ | ||
| 35 | * |backlit | lctrl | lgui | lalt | lower | space | space | raise | left | down | up | right | | ||
| 36 | * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+ | ||
| 37 | */ | ||
| 38 | [_QWERTY] = LAYOUT_ortho_4x12 ( | ||
| 39 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 40 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 41 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | ||
| 42 | BACKLIT, KC_LCTL, KC_LGUI, KC_LALT, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 43 | ), | ||
| 44 | |||
| 45 | /* Lower | ||
| 46 | * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+ | ||
| 47 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | | | ||
| 48 | * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+ | ||
| 49 | * | | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | ||
| 50 | * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+ | ||
| 51 | * | | F7 | F8 | F9 | F10 | F11 | F12 | | | | | | | ||
| 52 | * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+ | ||
| 53 | * | | | | | | | | | | | | | | ||
| 54 | * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+ | ||
| 55 | */ | ||
| 56 | [_LOWER] = LAYOUT_ortho_4x12 ( | ||
| 57 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, | ||
| 58 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 59 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, | ||
| 60 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 61 | ), | ||
| 62 | |||
| 63 | /* Raise | ||
| 64 | * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+ | ||
| 65 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | del | | ||
| 66 | * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+ | ||
| 67 | * | | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | | ||
| 68 | * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+ | ||
| 69 | * | | F7 | F8 | F9 | F10 | F11 | F12 | | | | | | | ||
| 70 | * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+ | ||
| 71 | * | | | | | | | | | home | home | pgdn | end | | ||
| 72 | * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+ | ||
| 73 | */ | ||
| 74 | [_RAISE] = LAYOUT_ortho_4x12 ( | ||
| 75 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, | ||
| 76 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | ||
| 77 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, | ||
| 78 | _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END | ||
| 79 | ), | ||
| 80 | |||
| 81 | [_ADJUST] = LAYOUT_ortho_4x12 ( | ||
| 82 | _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 83 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 84 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 85 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 86 | ), | ||
| 87 | }; | ||
| 88 | |||
| 89 | uint32_t layer_state_set_user(uint32_t state) { | ||
| 90 | return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); | ||
| 91 | } | ||
| 92 | |||
| 93 | void matrix_init_user(void) { | ||
| 94 | } | ||
| 95 | |||
| 96 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 97 | switch (keycode) { | ||
| 98 | |||
| 99 | case BACKLIT: | ||
| 100 | if (record->event.pressed) { | ||
| 101 | register_code(KC_RSFT); | ||
| 102 | #ifdef BACKLIGHT_ENABLE | ||
| 103 | backlight_step(); | ||
| 104 | #endif | ||
| 105 | } else { | ||
| 106 | unregister_code(KC_RSFT); | ||
| 107 | } | ||
| 108 | return false; | ||
| 109 | break; | ||
| 110 | |||
| 111 | default: | ||
| 112 | return true; | ||
| 113 | |||
| 114 | } | ||
| 115 | } | ||
diff --git a/keyboards/handwired/jotanck/readme.md b/keyboards/handwired/jotanck/readme.md new file mode 100644 index 000000000..41b0ea401 --- /dev/null +++ b/keyboards/handwired/jotanck/readme.md | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | # Jotanck | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A compact 40% (12x4) ortholinear keyboard kit inspired in the Planck made by jotix. | ||
| 6 | |||
| 7 | Keyboard Maintainer: [jotix](https://github.com/jotix) | ||
| 8 | Hardware Supported: Arduino Pro Micro | ||
| 9 | Hardware Availability: [Mercado Libre](https://articulo.mercadolibre.com.ar/MLA-771696548-teclado-mecanico-handwired-black-switchs-pbt-keycaps-_JM) | ||
| 10 | |||
| 11 | ### Arduino Pro Micro Pinout | ||
| 12 | |||
| 13 | | Rows | 0 | 1 | 2 | 3 | | ||
| 14 | |-------------|----|----|----|----| | ||
| 15 | | Arduino pin | 8 | 9 | 10 | 16 | | ||
| 16 | | QMK pin | B4 | B5 | B6 | B2 | | ||
| 17 | |||
| 18 | | Columns | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | | ||
| 19 | |-------------|----|----|----|----|----|----|-----|-----|----|----|----|----| | ||
| 20 | | Arduino pin | A3 | A2 | A1 | A0 | 15 | 14 | TX0 | RXI | 2 | 3 | 4 | 5 | | ||
| 21 | | QMK pin | F4 | F5 | F6 | F7 | B1 | B3 | D3 | D2 | D1 | D0 | D4 | C6 | | ||
| 22 | |||
| 23 | | | QMK led | Backlight | | ||
| 24 | |-------------|-----------|-----------| | ||
| 25 | | Arduino pin | 7 | 6 | | ||
| 26 | | QMK pin | E6 | D7 | | ||
| 27 | |||
| 28 | ### Compiling the Firmware | ||
| 29 | |||
| 30 | Make example for this keyboard (after setting up your build environment): | ||
| 31 | |||
| 32 | make handwired/jotanck:default | ||
| 33 | |||
| 34 | ### The Defaukt Keymap | ||
| 35 | |||
| 36 |  | ||
| 37 | |||
| 38 | 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/handwired/jotanck/rules.mk b/keyboards/handwired/jotanck/rules.mk new file mode 100644 index 000000000..6c3263446 --- /dev/null +++ b/keyboards/handwired/jotanck/rules.mk | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = 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. | ||
| 15 | F_CPU = 16000000 | ||
| 16 | |||
| 17 | # | ||
| 18 | # LUFA specific | ||
| 19 | # | ||
| 20 | # Target architecture (see library "Board Types" documentation). | ||
| 21 | ARCH = 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. | ||
| 34 | F_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. | ||
| 40 | BOOTLOADER = caterina | ||
| 41 | |||
| 42 | # Interrupt driven control endpoint task(+60) | ||
| 43 | OPT_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 | # | ||
| 49 | |||
| 50 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 51 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 52 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 53 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 54 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 55 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 56 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 57 | MIDI_ENABLE = no # MIDI controls | ||
| 58 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 59 | UNICODE_ENABLE = no # Unicode | ||
| 60 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 61 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
| 62 | API_SYSEX_ENABLE = no | ||
| 63 | |||
| 64 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 65 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 66 | LAYOUTS = ortho_4x12 | ||
