aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjotix <47826561+jotix@users.noreply.github.com>2019-03-18 14:56:12 -0300
committerDrashna Jaelre <drashna@live.com>2019-03-18 10:56:12 -0700
commitbd61b5b0ed76eb3b9676ef828b9e833cdb3301e5 (patch)
tree77ac3524acead0a7e22fc6b3cf690520e61ab710
parent68d4f78b2580a2f216112880b18341ca6e429d15 (diff)
downloadqmk_firmware-bd61b5b0ed76eb3b9676ef828b9e833cdb3301e5.tar.gz
qmk_firmware-bd61b5b0ed76eb3b9676ef828b9e833cdb3301e5.zip
[Keyboard] Add Jot50 handwired board (#5431)
-rw-r--r--keyboards/handwired/jot50/config.h38
-rw-r--r--keyboards/handwired/jot50/jot50.c6
-rw-r--r--keyboards/handwired/jot50/jot50.h19
-rw-r--r--keyboards/handwired/jot50/keymaps/default/keymap.c88
-rw-r--r--keyboards/handwired/jot50/readme.md37
-rw-r--r--keyboards/handwired/jot50/rules.mk66
6 files changed, 254 insertions, 0 deletions
diff --git a/keyboards/handwired/jot50/config.h b/keyboards/handwired/jot50/config.h
new file mode 100644
index 000000000..2dfcfd2d2
--- /dev/null
+++ b/keyboards/handwired/jot50/config.h
@@ -0,0 +1,38 @@
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 Jot50
11#define DESCRIPTION A 5x12 compact ortholinear keyboard
12
13/* key matrix size */
14#define MATRIX_ROWS 5
15#define MATRIX_COLS 12
16
17/* pro_micro pin-out */
18#define MATRIX_ROW_PINS { D7, E6, B4, 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 BACKLIGHT_LEVELS 3
24#define BACKLIGHT_PIN B5
25#define BACKLIGHT_BREATHING
26#define BREATHING_PERIOD 5
27
28/* COL2ROW or ROW2COL */
29#define DIODE_DIRECTION COL2ROW
30
31/* Set 0 if debouncing isn't needed */
32#define DEBOUNCING_DELAY 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
diff --git a/keyboards/handwired/jot50/jot50.c b/keyboards/handwired/jot50/jot50.c
new file mode 100644
index 000000000..a1d2258a5
--- /dev/null
+++ b/keyboards/handwired/jot50/jot50.c
@@ -0,0 +1,6 @@
1#include "jot50.h"
2
3void matrix_init_kb(void) {
4
5 matrix_init_user();
6}
diff --git a/keyboards/handwired/jot50/jot50.h b/keyboards/handwired/jot50/jot50.h
new file mode 100644
index 000000000..b7e67ae61
--- /dev/null
+++ b/keyboards/handwired/jot50/jot50.h
@@ -0,0 +1,19 @@
1#pragma once
2
3#include "quantum.h"
4
5
6#define LAYOUT_ortho_5x12( \
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 k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k4a, k4b \
12) \
13{ \
14 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b }, \
15 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b }, \
16 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b }, \
17 { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b }, \
18 { k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k4a, k4b } \
19}
diff --git a/keyboards/handwired/jot50/keymaps/default/keymap.c b/keyboards/handwired/jot50/keymaps/default/keymap.c
new file mode 100644
index 000000000..84fa9eea4
--- /dev/null
+++ b/keyboards/handwired/jot50/keymaps/default/keymap.c
@@ -0,0 +1,88 @@
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
6extern 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
18enum planck_keycodes {
19 BACKLIT = SAFE_RANGE
20};
21
22#define LOWER MO(_LOWER)
23#define RAISE MO(_RAISE)
24
25/* Funct
26 * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
27 * | | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | |
28 * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
29 * | caps | F11 | F12 | | | | | - | = | [ | ] | |
30 * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
31 * | | vol- | mute | vol+ | | | | | | | | \ |
32 * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
33 * | | prev | play | next | | | | | | | | |
34 * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
35 * | | | | | | | | | home | pgdn | pgup | end |
36 * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
37 */
38#define _FUNCT LAYOUT_ortho_5x12 (\
39 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______,\
40 KC_CAPS, KC_F11, KC_F12, _______, _______, _______, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, _______,\
41 _______, KC_VOLD, KC_MUTE, KC_VOLU, _______, _______, _______, _______, _______, _______, _______, KC_BSLS,\
42 _______, KC_MPRV, KC_MPLY, KC_MNXT, _______, _______, _______, _______, _______, _______, _______, _______,\
43 _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END\
44)
45
46const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
47
48/* Qwerty
49 * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
50 * | esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | bspc |
51 * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
52 * | ` | Q | W | E | R | T | Y | U | I | O | P | del |
53 * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
54 * | tab | A | S | D | F | G | H | J | K | L | ; | ' |
55 * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
56 * | lshift | Z | X | C | V | B | N | M | , | . | / | enter |
57 * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
58 * | lctrl | lgui | lalt | ralt | lower | space | space | raise | left | down | up | right |
59 * +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
60 */
61[_QWERTY] = LAYOUT_ortho_5x12 (
62 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
63 KC_GRV, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL,
64 KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
65 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
66 KC_LCTL, KC_LGUI, KC_LALT, KC_RALT, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
67),
68
69[_LOWER] = _FUNCT,
70
71[_RAISE] = _FUNCT,
72
73[_ADJUST] = LAYOUT_ortho_5x12 (
74 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
75 _______, RESET, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, _______,
76 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
77 _______, _______, _______, _______, _______, BL_STEP, BL_BRTG, _______, _______, _______, _______, _______,
78 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
79),
80};
81
82uint32_t layer_state_set_user(uint32_t state) {
83 return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
84}
85
86void matrix_init_user(void) {
87}
88
diff --git a/keyboards/handwired/jot50/readme.md b/keyboards/handwired/jot50/readme.md
new file mode 100644
index 000000000..fea08b82d
--- /dev/null
+++ b/keyboards/handwired/jot50/readme.md
@@ -0,0 +1,37 @@
1# Jotanck
2
3![Jotanck]
4
5A compact 50% (12x5) ortholinear keyboard kit inspired in the Preonic made by jotix.
6
7Keyboard Maintainer: [jotix](https://github.com/jotix)
8Hardware Supported: Arduino Pro Micro
9
10### Arduino Pro Micro Pinout
11
12| Rows | 0 | 1 | 2 | 3 | 4 |
13|-------------|----|----|----|----|----|
14| Arduino pin | 6 | 7 | 8 | 10 | 16 |
15| QMK pin | D7 | E6 | B4 | B6 | B2 |
16
17| Columns | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
18|-------------|----|----|----|----|----|----|-----|-----|----|----|----|----|
19| Arduino pin | A3 | A2 | A1 | A0 | 15 | 14 | TX0 | RXI | 2 | 3 | 4 | 5 |
20| QMK pin | F4 | F5 | F6 | F7 | B1 | B3 | D3 | D2 | D1 | D0 | D4 | C6 |
21
22| | Backlight |
23|-------------|-----------|
24| Arduino pin | 9 |
25| QMK pin | B5 |
26
27### Compiling the Firmware
28
29Make example for this keyboard (after setting up your build environment):
30
31 make handwired/jot50:default
32
33### The Defaukt Keymap
34
35![Default Keymap](https://i.imgur.com/4WTmcSN.jpg)
36
37See 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/jot50/rules.mk b/keyboards/handwired/jot50/rules.mk
new file mode 100644
index 000000000..36a100c96
--- /dev/null
+++ b/keyboards/handwired/jot50/rules.mk
@@ -0,0 +1,66 @@
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#
49
50BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
51MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
52EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
53CONSOLE_ENABLE = yes # Console for debug(+400)
54COMMAND_ENABLE = no # Commands for debug and configuration
55NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
56BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
57MIDI_ENABLE = no # MIDI controls
58AUDIO_ENABLE = no # Audio output on port C6
59UNICODE_ENABLE = no # Unicode
60BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
61RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
62API_SYSEX_ENABLE = no
63
64# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
65SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
66LAYOUTS = ortho_5x12