diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | keyboards/s60-x/Makefile | 75 | ||||
| -rw-r--r-- | keyboards/s60-x/config.h | 164 | ||||
| -rw-r--r-- | keyboards/s60-x/keymaps/default/Makefile | 21 | ||||
| -rw-r--r-- | keyboards/s60-x/keymaps/default/keymap.c | 92 | ||||
| -rw-r--r-- | keyboards/s60-x/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/s60-x/keymaps/felix/Makefile | 21 | ||||
| -rw-r--r-- | keyboards/s60-x/keymaps/felix/keymap.c | 110 | ||||
| -rw-r--r-- | keyboards/s60-x/keymaps/felix/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/s60-x/readme.md | 32 | ||||
| -rw-r--r-- | keyboards/s60-x/s60-x.c | 28 | ||||
| -rw-r--r-- | keyboards/s60-x/s60-x.h | 44 |
12 files changed, 590 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index 8c85d6ffa..07bbf13db 100644 --- a/.gitignore +++ b/.gitignore | |||
| @@ -28,3 +28,4 @@ CMakeLists.txt | |||
| 28 | .settings/ | 28 | .settings/ |
| 29 | .idea | 29 | .idea |
| 30 | .browse.VC.db* | 30 | .browse.VC.db* |
| 31 | *.stackdump | ||
diff --git a/keyboards/s60-x/Makefile b/keyboards/s60-x/Makefile new file mode 100644 index 000000000..57edd5e03 --- /dev/null +++ b/keyboards/s60-x/Makefile | |||
| @@ -0,0 +1,75 @@ | |||
| 1 | |||
| 2 | |||
| 3 | # MCU name | ||
| 4 | #MCU = at90usb1287 | ||
| 5 | MCU = atmega32u4 | ||
| 6 | |||
| 7 | # Processor frequency. | ||
| 8 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
| 9 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
| 10 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
| 11 | # automatically to create a 32-bit value in your source code. | ||
| 12 | # | ||
| 13 | # This will be an integer division of F_USB below, as it is sourced by | ||
| 14 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
| 15 | # does not *change* the processor frequency - it should merely be updated to | ||
| 16 | # reflect the processor speed set externally so that the code can use accurate | ||
| 17 | # software delays. | ||
| 18 | F_CPU = 16000000 | ||
| 19 | |||
| 20 | |||
| 21 | # | ||
| 22 | # LUFA specific | ||
| 23 | # | ||
| 24 | # Target architecture (see library "Board Types" documentation). | ||
| 25 | ARCH = AVR8 | ||
| 26 | |||
| 27 | # Input clock frequency. | ||
| 28 | # This will define a symbol, F_USB, in all source code files equal to the | ||
| 29 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
| 30 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
| 31 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
| 32 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
| 33 | # at the end, this will be done automatically to create a 32-bit value in your | ||
| 34 | # source code. | ||
| 35 | # | ||
| 36 | # If no clock division is performed on the input clock inside the AVR (via the | ||
| 37 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
| 38 | F_USB = $(F_CPU) | ||
| 39 | |||
| 40 | # Interrupt driven control endpoint task(+60) | ||
| 41 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 42 | |||
| 43 | |||
| 44 | # Boot Section Size in *bytes* | ||
| 45 | # Teensy halfKay 512 | ||
| 46 | # Teensy++ halfKay 1024 | ||
| 47 | # Atmel DFU loader 4096 | ||
| 48 | # LUFA bootloader 4096 | ||
| 49 | # USBaspLoader 2048 | ||
| 50 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
| 51 | |||
| 52 | |||
| 53 | # Build Options | ||
| 54 | # change yes to no to disable | ||
| 55 | # | ||
| 56 | BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000) | ||
| 57 | MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700) | ||
| 58 | EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) | ||
| 59 | CONSOLE_ENABLE ?= yes # Console for debug(+400) | ||
| 60 | COMMAND_ENABLE ?= yes # Commands for debug and configuration | ||
| 61 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 62 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend | ||
| 63 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 64 | NKRO_ENABLE ?= no # USB Nkey Rollover | ||
| 65 | BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality on B7 by default | ||
| 66 | MIDI_ENABLE ?= no # MIDI controls | ||
| 67 | UNICODE_ENABLE ?= no # Unicode | ||
| 68 | BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 69 | AUDIO_ENABLE ?= no # Audio output on port C6 | ||
| 70 | |||
| 71 | ifndef QUANTUM_DIR | ||
| 72 | include ../../Makefile | ||
| 73 | endif | ||
| 74 | |||
| 75 | |||
diff --git a/keyboards/s60-x/config.h b/keyboards/s60-x/config.h new file mode 100644 index 000000000..d548a99b3 --- /dev/null +++ b/keyboards/s60-x/config.h | |||
| @@ -0,0 +1,164 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
| 3 | Copyright 2016 Julien Pecqueur <julien@peclu.net> | ||
| 4 | Copyright 2016 Felix Uhl <ifreilicht@gmail.com> | ||
| 5 | |||
| 6 | This program is free software: you can redistribute it and/or modify | ||
| 7 | it under the terms of the GNU General Public License as published by | ||
| 8 | the Free Software Foundation, either version 2 of the License, or | ||
| 9 | (at your option) any later version. | ||
| 10 | |||
| 11 | This program is distributed in the hope that it will be useful, | ||
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | GNU General Public License for more details. | ||
| 15 | |||
| 16 | You should have received a copy of the GNU General Public License | ||
| 17 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 18 | */ | ||
| 19 | |||
| 20 | #ifndef CONFIG_H | ||
| 21 | #define CONFIG_H | ||
| 22 | |||
| 23 | #include "config_common.h" | ||
| 24 | |||
| 25 | /* USB Device descriptor parameter */ | ||
| 26 | #define VENDOR_ID 0xFEED | ||
| 27 | #define PRODUCT_ID 0x6060 | ||
| 28 | #define DEVICE_VER 0x0001 | ||
| 29 | #define MANUFACTURER Massdrop | ||
| 30 | #define PRODUCT S60-X | ||
| 31 | #define DESCRIPTION q.m.k. keyboard firmware for S60-X | ||
| 32 | |||
| 33 | /* key matrix size */ | ||
| 34 | #define MATRIX_ROWS 5 | ||
| 35 | #define MATRIX_COLS 15 | ||
| 36 | |||
| 37 | /* | ||
| 38 | * Keyboard Matrix Assignments | ||
| 39 | * | ||
| 40 | * Change this to how you wired your keyboard | ||
| 41 | * COLS: AVR pins used for columns, left to right | ||
| 42 | * ROWS: AVR pins used for rows, top to bottom | ||
| 43 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 44 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 45 | * | ||
| 46 | */ | ||
| 47 | #define MATRIX_ROW_PINS { B7, B3, B2, B1, B0 } | ||
| 48 | #define MATRIX_COL_PINS { D0, D1, D2, D3, D5, D4, D6, D7, B4, B5, B6, C6, C7, E6, F1 } | ||
| 49 | #define UNUSED_PINS | ||
| 50 | |||
| 51 | /* COL2ROW or ROW2COL */ | ||
| 52 | #define DIODE_DIRECTION COL2ROW | ||
| 53 | |||
| 54 | // #define BACKLIGHT_PIN B7 | ||
| 55 | // #define BACKLIGHT_BREATHING | ||
| 56 | // #define BACKLIGHT_LEVELS 3 | ||
| 57 | |||
| 58 | |||
| 59 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 60 | #define DEBOUNCING_DELAY 5 | ||
| 61 | |||
| 62 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 63 | //#define MATRIX_HAS_GHOST | ||
| 64 | |||
| 65 | /* number of backlight levels */ | ||
| 66 | |||
| 67 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 68 | #define LOCKING_SUPPORT_ENABLE | ||
| 69 | /* Locking resynchronize hack */ | ||
| 70 | #define LOCKING_RESYNC_ENABLE | ||
| 71 | |||
| 72 | /* | ||
| 73 | * Force NKRO | ||
| 74 | * | ||
| 75 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 76 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 77 | * makefile for this to work.) | ||
| 78 | * | ||
| 79 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 80 | * until the next keyboard reset. | ||
| 81 | * | ||
| 82 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 83 | * fully operational during normal computer usage. | ||
| 84 | * | ||
| 85 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 86 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 87 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 88 | * power-up. | ||
| 89 | * | ||
| 90 | */ | ||
| 91 | //#define FORCE_NKRO | ||
| 92 | |||
| 93 | /* | ||
| 94 | * Magic Key Options | ||
| 95 | * | ||
| 96 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 97 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 98 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 99 | * | ||
| 100 | * The options below allow the magic key functionality to be changed. This is | ||
| 101 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 102 | * | ||
| 103 | */ | ||
| 104 | |||
| 105 | /* key combination for magic key command */ | ||
| 106 | #define IS_COMMAND() ( \ | ||
| 107 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
| 108 | ) | ||
| 109 | |||
| 110 | /* control how magic key switches layers */ | ||
| 111 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 112 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 113 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 114 | |||
| 115 | /* override magic key keymap */ | ||
| 116 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 117 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 118 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 119 | //#define MAGIC_KEY_HELP1 H | ||
| 120 | //#define MAGIC_KEY_HELP2 SLASH | ||
| 121 | //#define MAGIC_KEY_DEBUG D | ||
| 122 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 123 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 124 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 125 | //#define MAGIC_KEY_VERSION V | ||
| 126 | //#define MAGIC_KEY_STATUS S | ||
| 127 | //#define MAGIC_KEY_CONSOLE C | ||
| 128 | //#define MAGIC_KEY_LAYER0_ALT1 ESC | ||
| 129 | //#define MAGIC_KEY_LAYER0_ALT2 GRAVE | ||
| 130 | //#define MAGIC_KEY_LAYER0 0 | ||
| 131 | //#define MAGIC_KEY_LAYER1 1 | ||
| 132 | //#define MAGIC_KEY_LAYER2 2 | ||
| 133 | //#define MAGIC_KEY_LAYER3 3 | ||
| 134 | //#define MAGIC_KEY_LAYER4 4 | ||
| 135 | //#define MAGIC_KEY_LAYER5 5 | ||
| 136 | //#define MAGIC_KEY_LAYER6 6 | ||
| 137 | //#define MAGIC_KEY_LAYER7 7 | ||
| 138 | //#define MAGIC_KEY_LAYER8 8 | ||
| 139 | //#define MAGIC_KEY_LAYER9 9 | ||
| 140 | //#define MAGIC_KEY_BOOTLOADER PAUSE | ||
| 141 | //#define MAGIC_KEY_LOCK CAPS | ||
| 142 | //#define MAGIC_KEY_EEPROM E | ||
| 143 | //#define MAGIC_KEY_NKRO N | ||
| 144 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 145 | |||
| 146 | /* | ||
| 147 | * Feature disable options | ||
| 148 | * These options are also useful to firmware size reduction. | ||
| 149 | */ | ||
| 150 | |||
| 151 | /* disable debug print */ | ||
| 152 | //#define NO_DEBUG | ||
| 153 | |||
| 154 | /* disable print */ | ||
| 155 | //#define NO_PRINT | ||
| 156 | |||
| 157 | /* disable action features */ | ||
| 158 | //#define NO_ACTION_LAYER | ||
| 159 | //#define NO_ACTION_TAPPING | ||
| 160 | #define NO_ACTION_ONESHOT | ||
| 161 | #define NO_ACTION_MACRO | ||
| 162 | #define NO_ACTION_FUNCTION | ||
| 163 | |||
| 164 | #endif | ||
diff --git a/keyboards/s60-x/keymaps/default/Makefile b/keyboards/s60-x/keymaps/default/Makefile new file mode 100644 index 000000000..f4671a9d1 --- /dev/null +++ b/keyboards/s60-x/keymaps/default/Makefile | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # Build Options | ||
| 2 | # change to "no" to disable the options, or define them in the Makefile in | ||
| 3 | # the appropriate keymap folder that will get included automatically | ||
| 4 | # | ||
| 5 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 6 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
| 7 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 8 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 9 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 10 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 11 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 12 | MIDI_ENABLE = no # MIDI controls | ||
| 13 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 14 | UNICODE_ENABLE = no # Unicode | ||
| 15 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 16 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
| 17 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 18 | |||
| 19 | ifndef QUANTUM_DIR | ||
| 20 | include ../../../../Makefile | ||
| 21 | endif \ No newline at end of file | ||
diff --git a/keyboards/s60-x/keymaps/default/keymap.c b/keyboards/s60-x/keymaps/default/keymap.c new file mode 100644 index 000000000..aa2856525 --- /dev/null +++ b/keyboards/s60-x/keymaps/default/keymap.c | |||
| @@ -0,0 +1,92 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2016 Julien Pecqueur <julien@peclu.net> | ||
| 3 | Copyright 2016 Felix Uhl <ifreilicht@gmail.com> | ||
| 4 | |||
| 5 | This program is free software: you can redistribute it and/or modify | ||
| 6 | it under the terms of the GNU General Public License as published by | ||
| 7 | the Free Software Foundation, either version 2 of the License, or | ||
| 8 | (at your option) any later version. | ||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | You should have received a copy of the GNU General Public License | ||
| 14 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #include "s60-x.h" | ||
| 18 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | /* Layout 0: Default Layer | ||
| 21 | * ,-----------------------------------------------------------. | ||
| 22 | * |` | 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp | | ||
| 23 | * |-----------------------------------------------------------| | ||
| 24 | * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \| | ||
| 25 | * |-----------------------------------------------------------| | ||
| 26 | * |Ctrl | A| S| D| F| G| H| J| K| L| ;| '|Return | | ||
| 27 | * |-----------------------------------------------------------| | ||
| 28 | * |Shift | Z| X| C| V| B| N| M| ,| .| /|Shift | | ||
| 29 | * |-----------------------------------------------------------| | ||
| 30 | * |Fn1 |Gui |Alt | SpaceFn |Alt |Gui |App |Ctrl| | ||
| 31 | * `-----------------------------------------------------------' | ||
| 32 | */ | ||
| 33 | KEYMAP( | ||
| 34 | GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS, EQL, NO, BSPC, \ | ||
| 35 | TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC, RBRC, BSLS, \ | ||
| 36 | LCTL, A, S, D, F, G, H, J, K, L, SCLN, QUOT, NO, ENT, \ | ||
| 37 | LSFT, NO, Z, X, C, V, B, N, M, COMM, DOT, SLSH, NO, RSFT, NO, \ | ||
| 38 | FN1, LGUI, LALT, FN0, RALT, RGUI, APP, RCTL), | ||
| 39 | |||
| 40 | /* Layout 1: Function Layer | ||
| 41 | * ,-----------------------------------------------------------. | ||
| 42 | * |Esc| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Delete | | ||
| 43 | * |-----------------------------------------------------------| | ||
| 44 | * | |Prv|Ply|Nxt|Stp| | |PUp|Up |PDn| |Slk|Pau|Ins | | ||
| 45 | * |-----------------------------------------------------------| | ||
| 46 | * | |Vl-|Mut|Vl+| | |Hom|Lef|Dow|Rig|End| |PEnt | | ||
| 47 | * |-----------------------------------------------------------| | ||
| 48 | * | |Prt|Cut|Cop|Pst|Cal| | | | | |CapsLock | | ||
| 49 | * |-----------------------------------------------------------| | ||
| 50 | * | | | | | | | | | | ||
| 51 | * `-----------------------------------------------------------' | ||
| 52 | */ | ||
| 53 | KEYMAP( | ||
| 54 | ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS, DEL, \ | ||
| 55 | TRNS, MPRV, MPLY, MNXT, MSTP, TRNS, TRNS, PGUP, UP, PGDN, TRNS, SLCK, PAUS, INS, \ | ||
| 56 | TRNS, VOLD, MUTE, VOLU, TRNS, TRNS, HOME, LEFT, DOWN, RGHT, END, TRNS, TRNS, PENT, \ | ||
| 57 | TRNS, TRNS, PSCR, FN2, FN3, FN4, CALC, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, CAPS, TRNS, \ | ||
| 58 | TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS), | ||
| 59 | }; | ||
| 60 | |||
| 61 | /* | ||
| 62 | * Fn action definition | ||
| 63 | */ | ||
| 64 | const uint16_t PROGMEM fn_actions[] = { | ||
| 65 | [0] = ACTION_LAYER_TAP_KEY(1, KC_SPACE), /* SpaceFn layout 1 */ | ||
| 66 | [1] = ACTION_LAYER_MOMENTARY(1), /* Momentary layout 1 */ | ||
| 67 | [2] = ACTION_MODS_KEY(MOD_LSFT, KC_DEL), /* Cut */ | ||
| 68 | [3] = ACTION_MODS_KEY(MOD_LCTL, KC_INS), /* Copy */ | ||
| 69 | [4] = ACTION_MODS_KEY(MOD_LSFT, KC_INS), /* Paste */ | ||
| 70 | }; | ||
| 71 | |||
| 72 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | ||
| 73 | { | ||
| 74 | return MACRO_NONE; | ||
| 75 | }; | ||
| 76 | |||
| 77 | |||
| 78 | void matrix_init_user(void) { | ||
| 79 | |||
| 80 | } | ||
| 81 | |||
| 82 | void matrix_scan_user(void) { | ||
| 83 | |||
| 84 | } | ||
| 85 | |||
| 86 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 87 | return true; | ||
| 88 | } | ||
| 89 | |||
| 90 | void led_set_user(uint8_t usb_led) { | ||
| 91 | |||
| 92 | } \ No newline at end of file | ||
diff --git a/keyboards/s60-x/keymaps/default/readme.md b/keyboards/s60-x/keymaps/default/readme.md new file mode 100644 index 000000000..73318dad7 --- /dev/null +++ b/keyboards/s60-x/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for s60-x \ No newline at end of file | |||
diff --git a/keyboards/s60-x/keymaps/felix/Makefile b/keyboards/s60-x/keymaps/felix/Makefile new file mode 100644 index 000000000..251e4631d --- /dev/null +++ b/keyboards/s60-x/keymaps/felix/Makefile | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # Build Options | ||
| 2 | # change to "no" to disable the options, or define them in the Makefile in | ||
| 3 | # the appropriate keymap folder that will get included automatically | ||
| 4 | # | ||
| 5 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | ||
| 6 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
| 7 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 8 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 9 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 10 | NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 11 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 12 | MIDI_ENABLE = no # MIDI controls | ||
| 13 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 14 | UNICODE_ENABLE = no # Unicode | ||
| 15 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 16 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
| 17 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 18 | |||
| 19 | ifndef QUANTUM_DIR | ||
| 20 | include ../../../../Makefile | ||
| 21 | endif \ No newline at end of file | ||
diff --git a/keyboards/s60-x/keymaps/felix/keymap.c b/keyboards/s60-x/keymaps/felix/keymap.c new file mode 100644 index 000000000..a5ff1ae4d --- /dev/null +++ b/keyboards/s60-x/keymaps/felix/keymap.c | |||
| @@ -0,0 +1,110 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2016 Julien Pecqueur <julien@peclu.net> | ||
| 3 | Copyright 2016 Felix Uhl <ifreilicht@gmail.com> | ||
| 4 | |||
| 5 | This program is free software: you can redistribute it and/or modify | ||
| 6 | it under the terms of the GNU General Public License as published by | ||
| 7 | the Free Software Foundation, either version 2 of the License, or | ||
| 8 | (at your option) any later version. | ||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | You should have received a copy of the GNU General Public License | ||
| 14 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #include "s60-x.h" | ||
| 18 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | /* Layout 0: Default Layer | ||
| 21 | * ,-----------------------------------------------------------. | ||
| 22 | * |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| \|Del| | ||
| 23 | * |-----------------------------------------------------------| | ||
| 24 | * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]|BckSp| | ||
| 25 | * |-----------------------------------------------------------| | ||
| 26 | * |Ctrl | A| S| D| F| G| H| J| K| L| ;| '|Return | | ||
| 27 | * |-----------------------------------------------------------| | ||
| 28 | * |Shift | Z| X| C| V| B| N| M| ,| .| /| Up |Fn1 | | ||
| 29 | * |-----------------------------------------------------------| | ||
| 30 | * |Fn2 |Gui |Alt | SpaceFn |Alt |Left|Down|Right| | ||
| 31 | * `-----------------------------------------------------------' | ||
| 32 | */ | ||
| 33 | KEYMAP( | ||
| 34 | 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_BSLS, KC_DEL, \ | ||
| 35 | 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_BSPC, \ | ||
| 36 | 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_NO, KC_ENT, \ | ||
| 37 | KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_NO, KC_UP, KC_FN1, \ | ||
| 38 | KC_FN2, KC_LGUI, KC_LALT, KC_FN0, KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT), | ||
| 39 | |||
| 40 | /* Layout 1: Gaming Layer, SpaceFn disabled | ||
| 41 | * ,-----------------------------------------------------------. | ||
| 42 | * | | | | | | | | | | | | | | | | | ||
| 43 | * |-----------------------------------------------------------| | ||
| 44 | * | | | | | | | | | | | | | | | | ||
| 45 | * |-----------------------------------------------------------| | ||
| 46 | * | | | | | | | | | | | | | | | ||
| 47 | * |-----------------------------------------------------------| | ||
| 48 | * | | | | | | | | | | | | |Fn1 | | ||
| 49 | * |-----------------------------------------------------------| | ||
| 50 | * | | NOP| | Space | | | | | | ||
| 51 | * `-----------------------------------------------------------' | ||
| 52 | */ | ||
| 53 | KEYMAP( | ||
| 54 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \ | ||
| 55 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \ | ||
| 56 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \ | ||
| 57 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_FN1, \ | ||
| 58 | KC_TRNS, KC_NO, KC_TRNS, KC_SPC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 59 | |||
| 60 | /* Layout 2: Function Layer | ||
| 61 | * ,-----------------------------------------------------------. | ||
| 62 | * |` | F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12| |RES| | ||
| 63 | * |-----------------------------------------------------------| | ||
| 64 | * | |Prv|Ply|Nxt|Stp| | |PUp|Up |PDn| |Slk|Pau|Ins | | ||
| 65 | * |-----------------------------------------------------------| | ||
| 66 | * | |Vl-|Mut|Vl+| | |Hom|Lef|Dow|Rig|End| |PEnt | | ||
| 67 | * |-----------------------------------------------------------| | ||
| 68 | * | |Prt| | | |Cal| | | | |Pau |PUp |Rsft| | ||
| 69 | * |-----------------------------------------------------------| | ||
| 70 | * | | | | | |Home|PDn |End | | ||
| 71 | * `-----------------------------------------------------------' | ||
| 72 | */ | ||
| 73 | KEYMAP( | ||
| 74 | KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, DEBUG, RESET, \ | ||
| 75 | KC_TRNS, KC_MPRV, KC_MPLY, KC_MNXT, KC_MSTP, KC_TRNS, KC_TRNS, KC_PGUP, KC_UP, KC_PGDN, KC_TRNS, KC_SLCK, KC_PAUS, KC_INS, \ | ||
| 76 | KC_TRNS, KC_VOLD, KC_MUTE, KC_VOLU, KC_TRNS, KC_TRNS, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, KC_END, KC_TRNS, KC_TRNS, KC_PENT, \ | ||
| 77 | KC_TRNS, KC_TRNS, KC_PSCR, KC_TRNS, KC_TRNS, KC_TRNS, KC_CALC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PAUS, KC_PGUP, KC_RSFT, \ | ||
| 78 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_END), | ||
| 79 | }; | ||
| 80 | |||
| 81 | /* | ||
| 82 | * Fn action definition | ||
| 83 | */ | ||
| 84 | const uint16_t PROGMEM fn_actions[] = { | ||
| 85 | [0] = ACTION_LAYER_TAP_KEY(2, KC_SPACE), /* SpaceFn layout 1 */ | ||
| 86 | [1] = ACTION_LAYER_TOGGLE(1), /* Disable SpaceFn */ | ||
| 87 | [2] = ACTION_LAYER_MOMENTARY(2) /* SpaceFn layout 1 */ | ||
| 88 | }; | ||
| 89 | |||
| 90 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | ||
| 91 | { | ||
| 92 | return MACRO_NONE; | ||
| 93 | }; | ||
| 94 | |||
| 95 | |||
| 96 | void matrix_init_user(void) { | ||
| 97 | |||
| 98 | } | ||
| 99 | |||
| 100 | void matrix_scan_user(void) { | ||
| 101 | |||
| 102 | } | ||
| 103 | |||
| 104 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 105 | return true; | ||
| 106 | } | ||
| 107 | |||
| 108 | void led_set_user(uint8_t usb_led) { | ||
| 109 | |||
| 110 | } \ No newline at end of file | ||
diff --git a/keyboards/s60-x/keymaps/felix/readme.md b/keyboards/s60-x/keymaps/felix/readme.md new file mode 100644 index 000000000..73318dad7 --- /dev/null +++ b/keyboards/s60-x/keymaps/felix/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for s60-x \ No newline at end of file | |||
diff --git a/keyboards/s60-x/readme.md b/keyboards/s60-x/readme.md new file mode 100644 index 000000000..34c48b0b7 --- /dev/null +++ b/keyboards/s60-x/readme.md | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | S60-x keyboard firmware | ||
| 2 | ====================== | ||
| 3 | DIY compact keyboard by Massdrop. This is a port from TMK to QMK based on the [original S60-X Repo](https://github.com/jpec/s60x). | ||
| 4 | |||
| 5 | ## S60X Resources | ||
| 6 | - [Massdrop page](https://www.massdrop.com/buy/sentraq-60-diy-keyboard-kit) | ||
| 7 | |||
| 8 | ## Quantum MK Firmware | ||
| 9 | |||
| 10 | For the full Quantum feature list, see [the parent readme.md](/doc/readme.md). | ||
| 11 | |||
| 12 | ## Building | ||
| 13 | |||
| 14 | Download or clone the whole firmware and navigate to the keyboards/s60-x folder. Once your dev env is setup, you'll be able to type `make` to generate your .hex - you can then use the Teensy Loader to program your .hex file. | ||
| 15 | |||
| 16 | Depending on which keymap you would like to use, you will have to compile slightly differently. | ||
| 17 | |||
| 18 | ### Default | ||
| 19 | |||
| 20 | To build with the default keymap, simply run `make`. | ||
| 21 | |||
| 22 | ### Other Keymaps | ||
| 23 | |||
| 24 | Several version of keymap are available in advance but you are recommended to define your favorite layout yourself. To define your own keymap create a folder with the name of your keymap in the keymaps folder, and see keymap documentation (you can find in top readme.md) and existant keymap files. | ||
| 25 | |||
| 26 | To build the firmware binary hex file with a keymap just do `make` with `keymap` option like: | ||
| 27 | |||
| 28 | ``` | ||
| 29 | $ make keymap=[default|<name>] | ||
| 30 | ``` | ||
| 31 | |||
| 32 | Keymaps follow the format **__keymap.c__** and are stored in folders in the `keymaps` folder, eg `keymaps/my_keymap/` \ No newline at end of file | ||
diff --git a/keyboards/s60-x/s60-x.c b/keyboards/s60-x/s60-x.c new file mode 100644 index 000000000..417358140 --- /dev/null +++ b/keyboards/s60-x/s60-x.c | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | #include "s60-x.h" | ||
| 2 | |||
| 3 | void matrix_init_kb(void) { | ||
| 4 | // put your keyboard start-up code here | ||
| 5 | // runs once when the firmware starts up | ||
| 6 | |||
| 7 | matrix_init_user(); | ||
| 8 | } | ||
| 9 | |||
| 10 | void matrix_scan_kb(void) { | ||
| 11 | // put your looping keyboard code here | ||
| 12 | // runs every cycle (a lot) | ||
| 13 | |||
| 14 | matrix_scan_user(); | ||
| 15 | } | ||
| 16 | |||
| 17 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
| 18 | // put your per-action keyboard code here | ||
| 19 | // runs for every action, just before processing by the firmware | ||
| 20 | |||
| 21 | return process_record_user(keycode, record); | ||
| 22 | } | ||
| 23 | |||
| 24 | void led_set_kb(uint8_t usb_led) { | ||
| 25 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | ||
| 26 | |||
| 27 | led_set_user(usb_led); | ||
| 28 | } | ||
diff --git a/keyboards/s60-x/s60-x.h b/keyboards/s60-x/s60-x.h new file mode 100644 index 000000000..714de30db --- /dev/null +++ b/keyboards/s60-x/s60-x.h | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2012,2013 Jun Wako <wakojun@gmail.com> | ||
| 3 | Copyright 2015 Vinícius Nery Cordeiro <vinicius.nery.cordeiro@gmail.com> | ||
| 4 | Copyright 2016 Felix Uhl <ifreilicht@gmail.com> | ||
| 5 | |||
| 6 | This program is free software: you can redistribute it and/or modify | ||
| 7 | it under the terms of the GNU General Public License as published by | ||
| 8 | the Free Software Foundation, either version 2 of the License, or | ||
| 9 | (at your option) any later version. | ||
| 10 | |||
| 11 | This program is distributed in the hope that it will be useful, | ||
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | GNU General Public License for more details. | ||
| 15 | |||
| 16 | You should have received a copy of the GNU General Public License | ||
| 17 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 18 | */ | ||
| 19 | |||
| 20 | #ifndef S60X_H | ||
| 21 | #define S60X_H | ||
| 22 | |||
| 23 | #include "quantum.h" | ||
| 24 | |||
| 25 | /* S60-X keymap definition macro | ||
| 26 | * K2C, K31 and K3C are extra keys for ISO | ||
| 27 | * K0D is extra key from split backspace, K3E is extra key from split right shift | ||
| 28 | */ | ||
| 29 | |||
| 30 | #define KEYMAP( \ | ||
| 31 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \ | ||
| 32 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \ | ||
| 33 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, \ | ||
| 34 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \ | ||
| 35 | K40, K41, K42, K46, K4A, K4B, K4C, K4D \ | ||
| 36 | ) { \ | ||
| 37 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ | ||
| 38 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, KC_NO }, \ | ||
| 39 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, KC_NO }, \ | ||
| 40 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ | ||
| 41 | { K40, K41, K42, KC_NO, KC_NO, KC_NO, K46, KC_NO, KC_NO, KC_NO, K4A, K4B, K4C, K4D, KC_NO } \ | ||
| 42 | } | ||
| 43 | |||
| 44 | #endif | ||
