diff options
| author | blindassassin111 <38090555+blindassassin111@users.noreply.github.com> | 2018-08-31 10:15:09 -0500 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2018-08-31 08:15:09 -0700 |
| commit | 4e45119796049f1c2f9e0c99a0ad6f0f932691b5 (patch) | |
| tree | f1b745c76590999330bce9add2ea8022ec41897e | |
| parent | f9eedd7ce741f15a1d5ff7327cb44d3979a46e35 (diff) | |
| download | qmk_firmware-4e45119796049f1c2f9e0c99a0ad6f0f932691b5.tar.gz qmk_firmware-4e45119796049f1c2f9e0c99a0ad6f0f932691b5.zip | |
Keyboard: Adding Z-150 PCB firmware (#3793)
* Adding the AT101 PCB firmware
* Fixed AT101 keymap error
* Fixing AT101 firmware
* More Fixes for AT101 firmware
* Rename AT101_Blackheart.c to at101_blackheart.c
* Rename AT101_Blackheart.h to at101_blackheart.h
* Update readme.md
* Renaming AT101 folder pt1
* Renaming AT101 folder pt2
* Fixing AT101 LED function name
* Redoing AT101 folder naming pt2
Last round had issues, should be the last rename.
* Fixing missing comma in at101_blackheart.h
* Adding Z-150 PCB
* Adding Z-150 readme file
* Fixing Z-150 firmware errors
* Fixing Z-150 layout error
* Fixing Z-150 firmware errors
* Fixing Z-150 Issues
Still unsure where the extra "\" is that through the error.
* Fixing more Z-150 errors
* Finally fixing the Z-150 error
* Fixed Z-150 layout naming
* Removed Z-150 layout fillers
| -rw-r--r-- | keyboards/z150_blackheart/config.h | 52 | ||||
| -rw-r--r-- | keyboards/z150_blackheart/keymaps/default/keymap.c | 69 | ||||
| -rw-r--r-- | keyboards/z150_blackheart/readme.md | 14 | ||||
| -rw-r--r-- | keyboards/z150_blackheart/rules.mk | 58 | ||||
| -rw-r--r-- | keyboards/z150_blackheart/z150_blackheart.c | 1 | ||||
| -rw-r--r-- | keyboards/z150_blackheart/z150_blackheart.h | 34 |
6 files changed, 228 insertions, 0 deletions
diff --git a/keyboards/z150_blackheart/config.h b/keyboards/z150_blackheart/config.h new file mode 100644 index 000000000..d2fce9aee --- /dev/null +++ b/keyboards/z150_blackheart/config.h | |||
| @@ -0,0 +1,52 @@ | |||
| 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 blindassassin111 | ||
| 10 | #define PRODUCT Z-150 PCB | ||
| 11 | #define DESCRIPTION Replacement for Zenith Z-150 PCB | ||
| 12 | |||
| 13 | /* key matrix size */ | ||
| 14 | #define MATRIX_ROWS 5 | ||
| 15 | #define MATRIX_COLS 20 | ||
| 16 | |||
| 17 | /* key matrix pins */ | ||
| 18 | #define MATRIX_ROW_PINS { C3, C2, C1, C0, E1 } | ||
| 19 | #define MATRIX_COL_PINS { D0, D1, D2, D3, D4, D5, D7, E0, C7, C6, C5, C4, F0, F1, F2, F3, F4, F5, F6, F7 } | ||
| 20 | #define UNUSED_PINS | ||
| 21 | |||
| 22 | /* COL2ROW or ROW2COL */ | ||
| 23 | #define DIODE_DIRECTION COL2ROW | ||
| 24 | |||
| 25 | /* Set 0 if debouncing isn't needed */ | ||
| 26 | #define DEBOUNCING_DELAY 5 | ||
| 27 | |||
| 28 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 29 | #define LOCKING_SUPPORT_ENABLE | ||
| 30 | |||
| 31 | /* Locking resynchronize hack */ | ||
| 32 | #define LOCKING_RESYNC_ENABLE | ||
| 33 | |||
| 34 | /* force n-key rollover*/ | ||
| 35 | #define FORCE_NKRO | ||
| 36 | |||
| 37 | /* key combination for command */ | ||
| 38 | #define IS_COMMAND() ( \ | ||
| 39 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
| 40 | ) | ||
| 41 | |||
| 42 | /* prevent stuck modifiers */ | ||
| 43 | #define PREVENT_STUCK_MODIFIERS | ||
| 44 | |||
| 45 | |||
| 46 | #ifdef RGB_DI_PIN | ||
| 47 | #define RGBLIGHT_ANIMATIONS | ||
| 48 | #define RGBLED_NUM 0 | ||
| 49 | #define RGBLIGHT_HUE_STEP 8 | ||
| 50 | #define RGBLIGHT_SAT_STEP 8 | ||
| 51 | #define RGBLIGHT_VAL_STEP 8 | ||
| 52 | #endif \ No newline at end of file | ||
diff --git a/keyboards/z150_blackheart/keymaps/default/keymap.c b/keyboards/z150_blackheart/keymaps/default/keymap.c new file mode 100644 index 000000000..e93802052 --- /dev/null +++ b/keyboards/z150_blackheart/keymaps/default/keymap.c | |||
| @@ -0,0 +1,69 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 4 | |||
| 5 | LAYOUT( | ||
| 6 | KC_F1, KC_F2, KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_NLCK, KC_SLCK, MO(1), | ||
| 7 | KC_F3, KC_F4, 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_RBRC, KC_ENT, KC_P7, KC_P8, KC_P9, KC_PAST, | ||
| 8 | KC_F5, KC_F6, KC_LCTRL,KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_P4, KC_P5, KC_P6, KC_PMNS, | ||
| 9 | KC_F7, KC_F8, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT,KC_SLSH, KC_RSFT, KC_BSLS, KC_P1, KC_P2, KC_P3, KC_PPLS, | ||
| 10 | KC_F9, KC_F10, KC_LALT, KC_GRV, KC_SPC, KC_CAPS, KC_P0, KC_PDOT | ||
| 11 | ), | ||
| 12 | |||
| 13 | LAYOUT( | ||
| 14 | _______, _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 15 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 16 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 17 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 18 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 19 | ), | ||
| 20 | |||
| 21 | LAYOUT_z150_tkl( | ||
| 22 | KC_F1, KC_F2, KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, | ||
| 23 | KC_F3, KC_F4, 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_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, | ||
| 24 | KC_F5, KC_F6, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 25 | KC_F7, KC_F8, KC_LSFT, KC_BSLS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH, KC_RSFT, MO(1), XXXXXXX, KC_UP, XXXXXXX, | ||
| 26 | KC_F9, KC_F10, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_MENU, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 27 | ), | ||
| 28 | |||
| 29 | LAYOUT_z150_tkl( | ||
| 30 | _______, _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 33 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 34 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 35 | ), | ||
| 36 | }; | ||
| 37 | |||
| 38 | void matrix_init_user(void) { | ||
| 39 | } | ||
| 40 | |||
| 41 | void matrix_scan_user(void) { | ||
| 42 | } | ||
| 43 | |||
| 44 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 45 | return true; | ||
| 46 | } | ||
| 47 | |||
| 48 | void led_set_user(uint8_t usb_led) { | ||
| 49 | DDRB |= (1 << 0); | ||
| 50 | DDRE |= (1 << 6) | (1 << 7); | ||
| 51 | |||
| 52 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
| 53 | PORTE |= (1 << 7); | ||
| 54 | } else { | ||
| 55 | PORTE &= ~(1 << 7); | ||
| 56 | } | ||
| 57 | |||
| 58 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
| 59 | PORTB |= (1 << 0); | ||
| 60 | } else { | ||
| 61 | PORTB &= ~(1 << 0); | ||
| 62 | } | ||
| 63 | |||
| 64 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
| 65 | PORTE |= (1 << 6); | ||
| 66 | } else { | ||
| 67 | PORTE &= ~(1 << 6); | ||
| 68 | } | ||
| 69 | } \ No newline at end of file | ||
diff --git a/keyboards/z150_blackheart/readme.md b/keyboards/z150_blackheart/readme.md new file mode 100644 index 000000000..5e87b6c8f --- /dev/null +++ b/keyboards/z150_blackheart/readme.md | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Z-150 Blackheart PCB | ||
| 2 | === | ||
| 3 | |||
| 4 | A replacement PCB for Zenith Z-150 keyboards. | ||
| 5 | |||
| 6 | Keyboard Maintainer: QMK Community and blindassassin111 | ||
| 7 | Hardware Supported: Z-150 blackheart PCB | ||
| 8 | Hardware Availability: https://deskthority.net/group-buys-f50/programmable-vintage-board-pcbs-omnikey-at101-and-z-150-t19325.html | ||
| 9 | |||
| 10 | Make example for this keyboard (after setting up your build environment): | ||
| 11 | |||
| 12 | make z150_blackheart:default | ||
| 13 | |||
| 14 | 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/z150_blackheart/rules.mk b/keyboards/z150_blackheart/rules.mk new file mode 100644 index 000000000..b258bf35f --- /dev/null +++ b/keyboards/z150_blackheart/rules.mk | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = at90usb1286 | ||
| 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 selection | ||
| 40 | BOOTLOADER = halfkay | ||
| 41 | |||
| 42 | # Boot Section Size in *bytes* | ||
| 43 | # OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
| 44 | |||
| 45 | |||
| 46 | # Build Options | ||
| 47 | # comment out to disable the options. | ||
| 48 | # | ||
| 49 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | ||
| 50 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
| 51 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 52 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 53 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 54 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 55 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 56 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 57 | AUDIO_ENABLE = no | ||
| 58 | RGBLIGHT_ENABLE = no \ No newline at end of file | ||
diff --git a/keyboards/z150_blackheart/z150_blackheart.c b/keyboards/z150_blackheart/z150_blackheart.c new file mode 100644 index 000000000..10f388cf6 --- /dev/null +++ b/keyboards/z150_blackheart/z150_blackheart.c | |||
| @@ -0,0 +1 @@ | |||
| #include "z150_blackheart.h" | |||
diff --git a/keyboards/z150_blackheart/z150_blackheart.h b/keyboards/z150_blackheart/z150_blackheart.h new file mode 100644 index 000000000..baf187fd2 --- /dev/null +++ b/keyboards/z150_blackheart/z150_blackheart.h | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | #ifndef z150_blackheart_H | ||
| 2 | #define z150_blackheart_H | ||
| 3 | |||
| 4 | #include "quantum.h" | ||
| 5 | |||
| 6 | #define LAYOUT( \ | ||
| 7 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K016, K017, K019, \ | ||
| 8 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, K117, K118, K119, \ | ||
| 9 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K215, K216, K217, K218, \ | ||
| 10 | K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K315, K316, K317, K318, \ | ||
| 11 | K400, K401, K402, K403, K407, K414, K415, K417 \ | ||
| 12 | ) { \ | ||
| 13 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K016, K017, KC_NO, K019 }, \ | ||
| 14 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, K117, K118, K119 }, \ | ||
| 15 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, KC_NO, K215, K216, K217, K218, KC_NO }, \ | ||
| 16 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K315, K316, K317, K318, KC_NO }, \ | ||
| 17 | { K400, K401, K402, K403, KC_NO, KC_NO, KC_NO, K407, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, K414, K415, KC_NO, K417, KC_NO, KC_NO } \ | ||
| 18 | } | ||
| 19 | |||
| 20 | #define LAYOUT_z150_tkl( \ | ||
| 21 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K017, K018, K019, \ | ||
| 22 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K117, K118, K119, \ | ||
| 23 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K216, K217, K218, \ | ||
| 24 | K300, K301, K302, K405, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K316, K317, K318, \ | ||
| 25 | K400, K401, K402, K403, K404, K407, K412, K413, K414, K415, K416, K417, K418 \ | ||
| 26 | ) { \ | ||
| 27 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, KC_NO, K017, K018, K019 }, \ | ||
| 28 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, KC_NO, K117, K118, K119 }, \ | ||
| 29 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, KC_NO, K216, K217, K218, KC_NO }, \ | ||
| 30 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, KC_NO, K316, K317, K318, KC_NO }, \ | ||
| 31 | { K400, K401, K402, K403, K404, K405, KC_NO, K407, KC_NO, KC_NO, KC_NO, KC_NO, K412, K413, K414, K415, K416, K417, K418, KC_NO } \ | ||
| 32 | } | ||
| 33 | |||
| 34 | #endif \ No newline at end of file | ||
