diff options
| author | Filip Sund <filip.sund@gmail.com> | 2018-11-09 00:12:42 +0100 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2018-11-08 15:12:42 -0800 |
| commit | ef84bd979979f092980dc68d513a906e084c8c57 (patch) | |
| tree | 388ac0b98fb0fc9db21428f73116831e39d793f7 | |
| parent | 5eb69ca224f3d4233860a658e6a27516d86c4de7 (diff) | |
| download | qmk_firmware-ef84bd979979f092980dc68d513a906e084c8c57.tar.gz qmk_firmware-ef84bd979979f092980dc68d513a906e084c8c57.zip | |
Keyboard: Add 30wer config and keymap (#4386)
* Preliminary 30wer firmware. Not tested on real board yet.
* Added a layer to default 30wer keymap.
* Wrote readme for 30wer.
* Added 30wer info.json.
| -rw-r--r-- | keyboards/30wer/30wer.c | 1 | ||||
| -rw-r--r-- | keyboards/30wer/30wer.h | 14 | ||||
| -rw-r--r-- | keyboards/30wer/config.h | 31 | ||||
| -rw-r--r-- | keyboards/30wer/info.json | 51 | ||||
| -rw-r--r-- | keyboards/30wer/keymaps/default/keymap.c | 17 | ||||
| -rw-r--r-- | keyboards/30wer/readme.md | 16 | ||||
| -rw-r--r-- | keyboards/30wer/rules.mk | 60 |
7 files changed, 190 insertions, 0 deletions
diff --git a/keyboards/30wer/30wer.c b/keyboards/30wer/30wer.c new file mode 100644 index 000000000..a46c54319 --- /dev/null +++ b/keyboards/30wer/30wer.c | |||
| @@ -0,0 +1 @@ | |||
| #include "30wer.h" | |||
diff --git a/keyboards/30wer/30wer.h b/keyboards/30wer/30wer.h new file mode 100644 index 000000000..e7bce8277 --- /dev/null +++ b/keyboards/30wer/30wer.h | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "quantum.h" | ||
| 4 | |||
| 5 | #define LAYOUT( \ | ||
| 6 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, \ | ||
| 7 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, \ | ||
| 8 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b \ | ||
| 9 | ) \ | ||
| 10 | { \ | ||
| 11 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c }, \ | ||
| 12 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c }, \ | ||
| 13 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b } \ | ||
| 14 | } | ||
diff --git a/keyboards/30wer/config.h b/keyboards/30wer/config.h new file mode 100644 index 000000000..d49758524 --- /dev/null +++ b/keyboards/30wer/config.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "config_common.h" | ||
| 4 | |||
| 5 | /* USB Device descriptor parameter */ | ||
| 6 | #define VENDOR_ID 0x1234 | ||
| 7 | #define PRODUCT_ID 0x5678 | ||
| 8 | #define DEVICE_VER 0x0000 | ||
| 9 | #define MANUFACTURER 8o7wer | ||
| 10 | #define PRODUCT 30wer | ||
| 11 | #define DESCRIPTION Gherkin style construction 30% staggered pcb kit | ||
| 12 | |||
| 13 | /* key matrix size */ | ||
| 14 | #define MATRIX_ROWS 3 | ||
| 15 | #define MATRIX_COLS 13 | ||
| 16 | |||
| 17 | /* pcb default pin-out */ | ||
| 18 | #define MATRIX_ROW_PINS { E6, B4, B5 } | ||
| 19 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6, D1, D0, D4, C6, D7 } | ||
| 20 | #define UNUSED_PINS | ||
| 21 | |||
| 22 | /* COL2ROW or ROW2COL */ | ||
| 23 | #define DIODE_DIRECTION COL2ROW | ||
| 24 | |||
| 25 | /* key combination for command */ | ||
| 26 | #define IS_COMMAND() ( \ | ||
| 27 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
| 28 | ) | ||
| 29 | |||
| 30 | /* prevent stuck modifiers */ | ||
| 31 | #define PREVENT_STUCK_MODIFIERS | ||
diff --git a/keyboards/30wer/info.json b/keyboards/30wer/info.json new file mode 100644 index 000000000..0fbbeb47d --- /dev/null +++ b/keyboards/30wer/info.json | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "30wer", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 13.25, | ||
| 6 | "height": 3, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [ | ||
| 10 | {"label":"Tab", "x":0, "y":0}, | ||
| 11 | {"label":"Q", "x":1, "y":0}, | ||
| 12 | {"label":"W", "x":2, "y":0}, | ||
| 13 | {"label":"E", "x":3, "y":0}, | ||
| 14 | {"label":"R", "x":4, "y":0}, | ||
| 15 | {"label":"T", "x":5, "y":0}, | ||
| 16 | {"label":"Y", "x":6, "y":0}, | ||
| 17 | {"label":"U", "x":7, "y":0}, | ||
| 18 | {"label":"I", "x":8, "y":0}, | ||
| 19 | {"label":"O", "x":9, "y":0}, | ||
| 20 | {"label":"P", "x":10, "y":0}, | ||
| 21 | {"label":"Bksp", "x":11, "y":0}, | ||
| 22 | {"label":"Delete", "x":12, "y":0, "w":1.25}, | ||
| 23 | {"label":"Ctrl", "x":0, "y":1, "w":1.25}, | ||
| 24 | {"label":"A", "x":1.25, "y":1}, | ||
| 25 | {"label":"S", "x":2.25, "y":1}, | ||
| 26 | {"label":"D", "x":3.25, "y":1}, | ||
| 27 | {"label":"F", "x":4.25, "y":1}, | ||
| 28 | {"label":"G", "x":5.25, "y":1}, | ||
| 29 | {"label":"H", "x":6.25, "y":1}, | ||
| 30 | {"label":"J", "x":7.25, "y":1}, | ||
| 31 | {"label":"K", "x":8.25, "y":1}, | ||
| 32 | {"label":"L", "x":9.25, "y":1}, | ||
| 33 | {"label":":", "x":10.25, "y":1}, | ||
| 34 | {"label":"\"", "x":11.25, "y":1}, | ||
| 35 | {"label":"Enter", "x":12.25, "y":1}, | ||
| 36 | {"label":"Shift", "x":0, "y":2, "w":1.75}, | ||
| 37 | {"label":"Z", "x":1.75, "y":2}, | ||
| 38 | {"label":"X", "x":2.75, "y":2}, | ||
| 39 | {"label":"C", "x":3.75, "y":2}, | ||
| 40 | {"label":"V", "x":4.75, "y":2}, | ||
| 41 | {"label":"B", "x":5.75, "y":2}, | ||
| 42 | {"label":"N", "x":6.75, "y":2}, | ||
| 43 | {"label":"M", "x":7.75, "y":2}, | ||
| 44 | {"label":"<", "x":8.75, "y":2}, | ||
| 45 | {"label":">", "x":9.75, "y":2}, | ||
| 46 | {"label":"?", "x":10.75, "y":2}, | ||
| 47 | {"label":"Space", "x":11.75, "y":2, "w":1.5} | ||
| 48 | ] | ||
| 49 | } | ||
| 50 | } | ||
| 51 | } | ||
diff --git a/keyboards/30wer/keymaps/default/keymap.c b/keyboards/30wer/keymaps/default/keymap.c new file mode 100644 index 000000000..9e39a500a --- /dev/null +++ b/keyboards/30wer/keymaps/default/keymap.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 4 | |||
| 5 | [0] = LAYOUT( \ | ||
| 6 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_BSPC, \ | ||
| 7 | KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, \ | ||
| 8 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, LT(1, KC_SPC) \ | ||
| 9 | ), | ||
| 10 | |||
| 11 | [1] = LAYOUT( \ | ||
| 12 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_UP, KC_DEL, \ | ||
| 13 | _______, _______, _______, _______, RESET, _______, _______, _______, _______, _______, KC_LEFT, KC_RGHT, _______, \ | ||
| 14 | KC_LALT, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DOWN, _______ \ | ||
| 15 | ), | ||
| 16 | |||
| 17 | }; | ||
diff --git a/keyboards/30wer/readme.md b/keyboards/30wer/readme.md new file mode 100644 index 000000000..c9184f726 --- /dev/null +++ b/keyboards/30wer/readme.md | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | 30wer by 8o7wer | ||
| 2 | === | ||
| 3 | |||
| 4 |  | ||
| 5 | |||
| 6 | Keyboard Maintainer: [Filip Sund](https://github.com/FSund) | ||
| 7 | Hardware Supported: Pro Micro | ||
| 8 | Hardware Availability: Group buy | ||
| 9 | |||
| 10 | More info in the [group by thread at Keebtalk](https://www.keebtalk.com/t/gb-30wer-by-8o7wer/3618/). | ||
| 11 | |||
| 12 | Make example for this keyboard (after setting up your build environment): | ||
| 13 | |||
| 14 | make 30wer:default | ||
| 15 | |||
| 16 | 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). \ No newline at end of file | ||
diff --git a/keyboards/30wer/rules.mk b/keyboards/30wer/rules.mk new file mode 100644 index 000000000..9d77ec546 --- /dev/null +++ b/keyboards/30wer/rules.mk | |||
| @@ -0,0 +1,60 @@ | |||
| 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 | # Interrupt driven control endpoint task(+60) | ||
| 37 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 38 | |||
| 39 | # Bootloader | ||
| 40 | # This definition is optional, and if your keyboard supports multiple bootloaders of | ||
| 41 | # different sizes, comment this out, and the correct address will be loaded | ||
| 42 | # automatically (+60). See bootloader.mk for all options. | ||
| 43 | BOOTLOADER = caterina | ||
| 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 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 50 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 51 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 52 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 53 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 54 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 55 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 56 | MIDI_ENABLE = no # MIDI controls | ||
| 57 | AUDIO_ENABLE = no # Audio output | ||
| 58 | UNICODE_ENABLE = no # Unicode | ||
| 59 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 60 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
