diff options
| author | That-Canadian <poole.chris.11@gmail.com> | 2017-07-04 14:14:26 -0400 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2017-07-04 16:43:19 -0400 |
| commit | dbcf0ba6cafa6ef35754c0a47fd4443ed6f0dca8 (patch) | |
| tree | 7115fd8bdf1d5a96fa55047e92085afd1eb154c3 | |
| parent | 34c8bf47a76c8a2dcd3b1a19dd608f8fb2fafb31 (diff) | |
| download | qmk_firmware-dbcf0ba6cafa6ef35754c0a47fd4443ed6f0dca8.tar.gz qmk_firmware-dbcf0ba6cafa6ef35754c0a47fd4443ed6f0dca8.zip | |
Added ECO keyboard folder and configuration files. Also added my (That-Canadian) keymap folder and files.
| -rw-r--r-- | keyboards/eco/Makefile | 5 | ||||
| -rw-r--r-- | keyboards/eco/config.h | 68 | ||||
| -rw-r--r-- | keyboards/eco/eco.c | 1 | ||||
| -rw-r--r-- | keyboards/eco/eco.h | 10 | ||||
| -rw-r--r-- | keyboards/eco/keymaps/that-canadian/Makefile | 25 | ||||
| -rw-r--r-- | keyboards/eco/keymaps/that-canadian/keymap.c | 217 | ||||
| -rw-r--r-- | keyboards/eco/keymaps/that-canadian/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/eco/readme.md | 9 | ||||
| -rw-r--r-- | keyboards/eco/rev1/Makefile | 3 | ||||
| -rw-r--r-- | keyboards/eco/rev1/config.h | 79 | ||||
| -rw-r--r-- | keyboards/eco/rev1/rev1.c | 1 | ||||
| -rw-r--r-- | keyboards/eco/rev1/rev1.h | 24 | ||||
| -rw-r--r-- | keyboards/eco/rev1/rules.mk | 5 | ||||
| -rw-r--r-- | keyboards/eco/rules.mk | 68 |
14 files changed, 516 insertions, 0 deletions
diff --git a/keyboards/eco/Makefile b/keyboards/eco/Makefile new file mode 100644 index 000000000..30b43c4ea --- /dev/null +++ b/keyboards/eco/Makefile | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | SUBPROJECT_DEFAULT = rev1 | ||
| 2 | |||
| 3 | ifndef MAKEFILE_INCLUDED | ||
| 4 | include ../../Makefile | ||
| 5 | endif \ No newline at end of file | ||
diff --git a/keyboards/eco/config.h b/keyboards/eco/config.h new file mode 100644 index 000000000..b5676d5af --- /dev/null +++ b/keyboards/eco/config.h | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 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 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #ifndef CONFIG_H | ||
| 19 | #define CONFIG_H | ||
| 20 | |||
| 21 | #include "config_common.h" | ||
| 22 | |||
| 23 | /* USB Device descriptor parameter */ | ||
| 24 | #define VENDOR_ID 0x1337 | ||
| 25 | #define PRODUCT_ID 0x6006 | ||
| 26 | #define DEVICE_VER 0x0001 | ||
| 27 | #define MANUFACTURER Bishop Keyboards | ||
| 28 | #define PRODUCT The ECO Keyboard | ||
| 29 | #define DESCRIPTION An economical ortholinear keyboard | ||
| 30 | |||
| 31 | /* COL2ROW or ROW2COL */ | ||
| 32 | #define DIODE_DIRECTION COL2ROW | ||
| 33 | |||
| 34 | /* define if matrix has ghost */ | ||
| 35 | //#define MATRIX_HAS_GHOST | ||
| 36 | |||
| 37 | /* Set 0 if debouncing isn't needed */ | ||
| 38 | #define DEBOUNCING_DELAY 5 | ||
| 39 | |||
| 40 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 41 | #define LOCKING_SUPPORT_ENABLE | ||
| 42 | /* Locking resynchronize hack */ | ||
| 43 | #define LOCKING_RESYNC_ENABLE | ||
| 44 | |||
| 45 | /* key combination for command */ | ||
| 46 | #define IS_COMMAND() ( \ | ||
| 47 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
| 48 | ) | ||
| 49 | |||
| 50 | /* | ||
| 51 | * Feature disable options | ||
| 52 | * These options are also useful to firmware size reduction. | ||
| 53 | */ | ||
| 54 | |||
| 55 | /* disable debug print */ | ||
| 56 | //#define NO_DEBUG | ||
| 57 | |||
| 58 | /* disable print */ | ||
| 59 | //#define NO_PRINT | ||
| 60 | |||
| 61 | /* disable action features */ | ||
| 62 | //#define NO_ACTION_LAYER | ||
| 63 | //#define NO_ACTION_TAPPING | ||
| 64 | //#define NO_ACTION_ONESHOT | ||
| 65 | //#define NO_ACTION_MACRO | ||
| 66 | //#define NO_ACTION_FUNCTION | ||
| 67 | |||
| 68 | #endif | ||
diff --git a/keyboards/eco/eco.c b/keyboards/eco/eco.c new file mode 100644 index 000000000..84097652d --- /dev/null +++ b/keyboards/eco/eco.c | |||
| @@ -0,0 +1 @@ | |||
| #include "eco.h" | |||
diff --git a/keyboards/eco/eco.h b/keyboards/eco/eco.h new file mode 100644 index 000000000..9da33b9b8 --- /dev/null +++ b/keyboards/eco/eco.h | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | #ifndef ECO_H | ||
| 2 | #define ECO_H | ||
| 3 | |||
| 4 | #ifdef SUBPROJECT_rev1 | ||
| 5 | #include "rev1.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | #include "quantum.h" | ||
| 9 | |||
| 10 | #endif \ No newline at end of file | ||
diff --git a/keyboards/eco/keymaps/that-canadian/Makefile b/keyboards/eco/keymaps/that-canadian/Makefile new file mode 100644 index 000000000..7dab97942 --- /dev/null +++ b/keyboards/eco/keymaps/that-canadian/Makefile | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | |||
| 2 | |||
| 3 | # Build Options | ||
| 4 | # change to "no" to disable the options, or define them in the Makefile in | ||
| 5 | # the appropriate keymap folder that will get included automatically | ||
| 6 | # | ||
| 7 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 8 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
| 9 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 10 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 11 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 12 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 13 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 14 | MIDI_ENABLE = no # MIDI controls | ||
| 15 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 16 | UNICODE_ENABLE = no # Unicode | ||
| 17 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 18 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
| 19 | |||
| 20 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 21 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 22 | |||
| 23 | ifndef QUANTUM_DIR | ||
| 24 | include ../../../../Makefile | ||
| 25 | endif | ||
diff --git a/keyboards/eco/keymaps/that-canadian/keymap.c b/keyboards/eco/keymaps/that-canadian/keymap.c new file mode 100644 index 000000000..37637bce3 --- /dev/null +++ b/keyboards/eco/keymaps/that-canadian/keymap.c | |||
| @@ -0,0 +1,217 @@ | |||
| 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 | // Below layout is based upon /u/That-Canadian's planck layout | ||
| 5 | |||
| 6 | #include "eco.h" | ||
| 7 | #include "action_layer.h" | ||
| 8 | #ifdef AUDIO_ENABLE | ||
| 9 | #include "audio.h" | ||
| 10 | #endif | ||
| 11 | #include "eeconfig.h" | ||
| 12 | |||
| 13 | extern keymap_config_t keymap_config; | ||
| 14 | |||
| 15 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
| 16 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
| 17 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
| 18 | // entirely and just use numbers. | ||
| 19 | #define _QWERTY 0 | ||
| 20 | #define _LOWER 2 | ||
| 21 | #define _RAISE 3 | ||
| 22 | |||
| 23 | #define _FUNCTION 15 | ||
| 24 | #define _ADJUST 16 | ||
| 25 | |||
| 26 | enum eco_keycodes { | ||
| 27 | QWERTY = SAFE_RANGE, | ||
| 28 | LOWER, | ||
| 29 | RAISE | ||
| 30 | }; | ||
| 31 | |||
| 32 | // Fillers to make layering more clear | ||
| 33 | #define _______ KC_TRNS | ||
| 34 | #define XXXXXXX KC_NO | ||
| 35 | |||
| 36 | // Defines for task manager and such | ||
| 37 | #define CALTDEL LCTL(LALT(KC_DEL)) | ||
| 38 | #define TSKMGR LCTL(LSFT(KC_ESC)) | ||
| 39 | |||
| 40 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 41 | |||
| 42 | /* Qwerty | ||
| 43 | * ,-------------------------------------------------------------------------------------------------. | ||
| 44 | * | Tab | Q | W | E | R | T | ( | ) | Y | U | I | O | P | Bksp | | ||
| 45 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 46 | * | Func | A | S | D | F | G | [ | ] | H | J | K | L | ; | Enter| | ||
| 47 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 48 | * | Shift| Z | X | C | V | B | { | } | N | M | , | . | / | ' | | ||
| 49 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 50 | * | Ctrl | ` | GUI | Alt |Lower | Space|Pg-dwn| Pg-up| Space|Raise | Left | Down | Up |Right | | ||
| 51 | * `-------------------------------------------------------------------------------------------------' | ||
| 52 | */ | ||
| 53 | [_QWERTY] = { | ||
| 54 | {KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LPRN, KC_RPRN, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC}, | ||
| 55 | {MO(_FUNCTION), KC_A, KC_S, KC_D, KC_F, KC_G, KC_LBRC, KC_RBRC, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT}, | ||
| 56 | {OSM(MOD_LSFT), KC_Z, KC_X, KC_C, KC_V, KC_B, KC_LCBR, KC_RCBR, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_QUOT}, | ||
| 57 | {KC_LCTL, KC_GRV, KC_LGUI, KC_LALT, LOWER, KC_SPC, KC_PGDN, KC_PGUP, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT} | ||
| 58 | }, | ||
| 59 | |||
| 60 | /* Lower | ||
| 61 | * ,-------------------------------------------------------------------------------------------------. | ||
| 62 | * | Esc | ! | @ | # | $ | % | | | ^ | & | * | ( | ) | Del | | ||
| 63 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 64 | * | | F1 | F2 | F3 | F4 | F5 | | | F6 | _ | + | { | } |Enter | | ||
| 65 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 66 | * | | F7 | F8 | F9 | F10 | F11 | | | F12 | | | Mute | | | | | ||
| 67 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 68 | * | | | | |Lower | | | | Bksp |Raise | Next | Vol- | Vol+ | Play | | ||
| 69 | * `-------------------------------------------------------------------------------------------------' | ||
| 70 | */ | ||
| 71 | [_LOWER] = { | ||
| 72 | {KC_ESC, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, _______, _______, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL}, | ||
| 73 | {_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, _______}, | ||
| 74 | {_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, _______, _______, KC_F12, _______, _______, KC_MUTE, _______, KC_PIPE}, | ||
| 75 | {_______, _______, _______, _______, _______, _______, _______, _______, KC_BSPC, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY} | ||
| 76 | }, | ||
| 77 | |||
| 78 | /* Raise | ||
| 79 | * ,-------------------------------------------------------------------------------------------------. | ||
| 80 | * | Esc | 1 | 2 | 3 | 4 | 5 | | | 6 | 7 | 8 | 9 | 0 | Del | | ||
| 81 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 82 | * | | 4 | 5 | 6 | + | | | | | - | = | [ | ] |Enter | | ||
| 83 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 84 | * |Enter | 7 | 8 | 9 | - | | | | | | | Mute | | \ | | ||
| 85 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 86 | * | | , | 0 | . |Lower | Bksp | | | |Raise | Next | Vol- | Vol+ | Play | | ||
| 87 | * `-------------------------------------------------------------------------------------------------' | ||
| 88 | */ | ||
| 89 | [_RAISE] = { | ||
| 90 | {KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, _______, _______, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL}, | ||
| 91 | {_______, KC_4, KC_5, KC_6, KC_PLUS, _______, _______, _______, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, _______}, | ||
| 92 | {KC_ENT, KC_7, KC_8, KC_9, KC_MINS, _______, _______, _______, _______, _______, _______, KC_MUTE, _______, KC_BSLS}, | ||
| 93 | {_______, KC_COMM, KC_0, KC_DOT, _______, KC_BSPC, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY} | ||
| 94 | }, | ||
| 95 | |||
| 96 | /* Adjust (Lower + Raise) | ||
| 97 | * ,-------------------------------------------------------------------------------------------------. | ||
| 98 | * |Taskmg| Reset| | | | | | | | | | | |caltde| | ||
| 99 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 100 | * | | | | | | | | | | | | | | | | ||
| 101 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 102 | * | | | | | | | | | | | | | | |qqqqqqqqq | ||
| 103 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 104 | * | | | | | | | | | | | | | | | | ||
| 105 | * `-------------------------------------------------------------------------------------------------' | ||
| 106 | */ | ||
| 107 | [_ADJUST] = { | ||
| 108 | {TSKMGR, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, CALTDEL}, | ||
| 109 | {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______}, | ||
| 110 | {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______}, | ||
| 111 | {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______} | ||
| 112 | }, | ||
| 113 | |||
| 114 | /* Function | ||
| 115 | * ,-------------------------------------------------------------------------------------------------. | ||
| 116 | * | | | | | | | | | | | Up | | | | | ||
| 117 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 118 | * | | | | | | | | | | Left | Down |Right | | | | ||
| 119 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 120 | * | Caps | | | | | | | | | | | | | | | ||
| 121 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 122 | * | | | | | | | | | | | | | | | | ||
| 123 | * `-------------------------------------------------------------------------------------------------' | ||
| 124 | */ | ||
| 125 | [_FUNCTION] = { | ||
| 126 | {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_UP, _______, _______, _______}, | ||
| 127 | {_______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______}, | ||
| 128 | {KC_CAPS, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______}, | ||
| 129 | {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______} | ||
| 130 | } | ||
| 131 | |||
| 132 | }; | ||
| 133 | |||
| 134 | #ifdef AUDIO_ENABLE | ||
| 135 | |||
| 136 | float tone_startup[][2] = SONG(STARTUP_SOUND); | ||
| 137 | float tone_qwerty[][2] = SONG(QWERTY_SOUND); | ||
| 138 | float tone_dvorak[][2] = SONG(DVORAK_SOUND); | ||
| 139 | float tone_colemak[][2] = SONG(COLEMAK_SOUND); | ||
| 140 | float music_scale[][2] = SONG(MUSIC_SCALE_SOUND); | ||
| 141 | |||
| 142 | float tone_goodbye[][2] = SONG(GOODBYE_SOUND); | ||
| 143 | #endif | ||
| 144 | |||
| 145 | |||
| 146 | void persistant_default_layer_set(uint16_t default_layer) { | ||
| 147 | eeconfig_update_default_layer(default_layer); | ||
| 148 | default_layer_set(default_layer); | ||
| 149 | } | ||
| 150 | |||
| 151 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 152 | switch (keycode) { | ||
| 153 | case QWERTY: | ||
| 154 | if (record->event.pressed) { | ||
| 155 | #ifdef AUDIO_ENABLE | ||
| 156 | PLAY_NOTE_ARRAY(tone_qwerty, false, 0); | ||
| 157 | #endif | ||
| 158 | persistant_default_layer_set(1UL<<_QWERTY); | ||
| 159 | } | ||
| 160 | return false; | ||
| 161 | break; | ||
| 162 | case LOWER: | ||
| 163 | if (record->event.pressed) { | ||
| 164 | layer_on(_LOWER); | ||
| 165 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 166 | } else { | ||
| 167 | layer_off(_LOWER); | ||
| 168 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 169 | } | ||
| 170 | return false; | ||
| 171 | break; | ||
| 172 | case RAISE: | ||
| 173 | if (record->event.pressed) { | ||
| 174 | layer_on(_RAISE); | ||
| 175 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 176 | } else { | ||
| 177 | layer_off(_RAISE); | ||
| 178 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 179 | } | ||
| 180 | return false; | ||
| 181 | break; | ||
| 182 | } | ||
| 183 | return true; | ||
| 184 | } | ||
| 185 | |||
| 186 | void matrix_init_user(void) { | ||
| 187 | #ifdef AUDIO_ENABLE | ||
| 188 | startup_user(); | ||
| 189 | #endif | ||
| 190 | } | ||
| 191 | |||
| 192 | #ifdef AUDIO_ENABLE | ||
| 193 | |||
| 194 | void startup_user() | ||
| 195 | { | ||
| 196 | _delay_ms(20); // gets rid of tick | ||
| 197 | PLAY_NOTE_ARRAY(tone_startup, false, 0); | ||
| 198 | } | ||
| 199 | |||
| 200 | void shutdown_user() | ||
| 201 | { | ||
| 202 | PLAY_NOTE_ARRAY(tone_goodbye, false, 0); | ||
| 203 | _delay_ms(150); | ||
| 204 | stop_all_notes(); | ||
| 205 | } | ||
| 206 | |||
| 207 | void music_on_user(void) | ||
| 208 | { | ||
| 209 | music_scale_user(); | ||
| 210 | } | ||
| 211 | |||
| 212 | void music_scale_user(void) | ||
| 213 | { | ||
| 214 | PLAY_NOTE_ARRAY(music_scale, false, 0); | ||
| 215 | } | ||
| 216 | |||
| 217 | #endif | ||
diff --git a/keyboards/eco/keymaps/that-canadian/readme.md b/keyboards/eco/keymaps/that-canadian/readme.md new file mode 100644 index 000000000..aa3316af0 --- /dev/null +++ b/keyboards/eco/keymaps/that-canadian/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # ECO Layout by u/That-Canadian \ No newline at end of file | |||
diff --git a/keyboards/eco/readme.md b/keyboards/eco/readme.md new file mode 100644 index 000000000..3f6bc2d28 --- /dev/null +++ b/keyboards/eco/readme.md | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | ECO | ||
| 2 | === | ||
| 3 | |||
| 4 |  | ||
| 5 | |||
| 6 | An economical 4x14 ortholinear keyboard | ||
| 7 | |||
| 8 | Design and concept by : BishopKeyboards | ||
| 9 | PCB by : u/That-Canadian | ||
diff --git a/keyboards/eco/rev1/Makefile b/keyboards/eco/rev1/Makefile new file mode 100644 index 000000000..4e2a6f00f --- /dev/null +++ b/keyboards/eco/rev1/Makefile | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | ifndef MAKEFILE_INCLUDED | ||
| 2 | include ../../Makefile | ||
| 3 | endif \ No newline at end of file | ||
diff --git a/keyboards/eco/rev1/config.h b/keyboards/eco/rev1/config.h new file mode 100644 index 000000000..c25723e84 --- /dev/null +++ b/keyboards/eco/rev1/config.h | |||
| @@ -0,0 +1,79 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 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 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #ifndef CONFIG_H | ||
| 19 | #define CONFIG_H | ||
| 20 | |||
| 21 | #include "config_common.h" | ||
| 22 | |||
| 23 | /* USB Device descriptor parameter */ | ||
| 24 | #define VENDOR_ID 0x1337 | ||
| 25 | #define PRODUCT_ID 0x6006 | ||
| 26 | #define DEVICE_VER 0x0001 | ||
| 27 | #define MANUFACTURER Bishop Keyboards | ||
| 28 | #define PRODUCT The ECO Keyboard | ||
| 29 | #define DESCRIPTION An economical ortholinear keyboard | ||
| 30 | |||
| 31 | /* key matrix size */ | ||
| 32 | #define MATRIX_ROWS 4 | ||
| 33 | #define MATRIX_COLS 14 | ||
| 34 | |||
| 35 | /* Planck PCB default pin-out */ | ||
| 36 | #define MATRIX_ROW_PINS { B1, B6, B2, B3 } | ||
| 37 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B5, B4, E6, D7, C6, D4, D0, D1, D2, D3 } | ||
| 38 | #define UNUSED_PINS | ||
| 39 | |||
| 40 | #define CATERINA_BOOTLOADER | ||
| 41 | |||
| 42 | /* COL2ROW or ROW2COL */ | ||
| 43 | #define DIODE_DIRECTION COL2ROW | ||
| 44 | |||
| 45 | /* define if matrix has ghost */ | ||
| 46 | //#define MATRIX_HAS_GHOST | ||
| 47 | |||
| 48 | /* Set 0 if debouncing isn't needed */ | ||
| 49 | #define DEBOUNCING_DELAY 5 | ||
| 50 | |||
| 51 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 52 | #define LOCKING_SUPPORT_ENABLE | ||
| 53 | /* Locking resynchronize hack */ | ||
| 54 | #define LOCKING_RESYNC_ENABLE | ||
| 55 | |||
| 56 | /* key combination for command */ | ||
| 57 | #define IS_COMMAND() ( \ | ||
| 58 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
| 59 | ) | ||
| 60 | |||
| 61 | /* | ||
| 62 | * Feature disable options | ||
| 63 | * These options are also useful to firmware size reduction. | ||
| 64 | */ | ||
| 65 | |||
| 66 | /* disable debug print */ | ||
| 67 | //#define NO_DEBUG | ||
| 68 | |||
| 69 | /* disable print */ | ||
| 70 | //#define NO_PRINT | ||
| 71 | |||
| 72 | /* disable action features */ | ||
| 73 | //#define NO_ACTION_LAYER | ||
| 74 | //#define NO_ACTION_TAPPING | ||
| 75 | //#define NO_ACTION_ONESHOT | ||
| 76 | //#define NO_ACTION_MACRO | ||
| 77 | //#define NO_ACTION_FUNCTION | ||
| 78 | |||
| 79 | #endif | ||
diff --git a/keyboards/eco/rev1/rev1.c b/keyboards/eco/rev1/rev1.c new file mode 100644 index 000000000..84097652d --- /dev/null +++ b/keyboards/eco/rev1/rev1.c | |||
| @@ -0,0 +1 @@ | |||
| #include "eco.h" | |||
diff --git a/keyboards/eco/rev1/rev1.h b/keyboards/eco/rev1/rev1.h new file mode 100644 index 000000000..41541ac05 --- /dev/null +++ b/keyboards/eco/rev1/rev1.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | #ifndef REV1_H | ||
| 2 | #define REV1_H | ||
| 3 | |||
| 4 | #include "../eco.h" | ||
| 5 | |||
| 6 | //void promicro_bootloader_jmp(bool program); | ||
| 7 | #include "quantum.h" | ||
| 8 | |||
| 9 | //void promicro_bootloader_jmp(bool program); | ||
| 10 | |||
| 11 | #define KEYMAP( \ | ||
| 12 | k01, k02, k03, k04, k05, k06, k07, k08, k09, k010, k011, k012, k013, k014, \ | ||
| 13 | k11, k12, k13, k14, k15, k16, k17, k18, k19, k110, k111, k112, k113, k114, \ | ||
| 14 | k21, k22, k23, k24, k25, k26, k27, k28, k29, k210, k211, k212, k213, k214, \ | ||
| 15 | k31, k32, k33, k34, k35, k36, k37, k38, k39, k310, k311, k312, k313, k314 \ | ||
| 16 | ) \ | ||
| 17 | { \ | ||
| 18 | { k01, k02, k03, k04, k05, k06, k07, k08, k09, k010, k011, k012, k013, k014 }, \ | ||
| 19 | { k11, k12, k13, k14, k15, k16, k17, k18, k19, k110, k111, k112, k113, k114 }, \ | ||
| 20 | { k21, k22, k23, k24, k25, k26, k27, k28, k29, k210, k211, k212, k213, k214 }, \ | ||
| 21 | { k31, k32, k33, k34, k35, k36, k37, k38, k39, k310, k311, k312, k313, k314 } \ | ||
| 22 | } | ||
| 23 | |||
| 24 | #endif \ No newline at end of file | ||
diff --git a/keyboards/eco/rev1/rules.mk b/keyboards/eco/rev1/rules.mk new file mode 100644 index 000000000..a0825b4ef --- /dev/null +++ b/keyboards/eco/rev1/rules.mk | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | BACKLIGHT_ENABLE = no | ||
| 2 | |||
| 3 | ifndef QUANTUM_DIR | ||
| 4 | include ../../../Makefile | ||
| 5 | endif \ No newline at end of file | ||
diff --git a/keyboards/eco/rules.mk b/keyboards/eco/rules.mk new file mode 100644 index 000000000..cf26cdc0d --- /dev/null +++ b/keyboards/eco/rules.mk | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | # MCU name | ||
| 2 | #MCU = at90usb1287 | ||
| 3 | MCU = atmega32u4 | ||
| 4 | |||
| 5 | # Processor frequency. | ||
| 6 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
| 7 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
| 8 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
| 9 | # automatically to create a 32-bit value in your source code. | ||
| 10 | # | ||
| 11 | # This will be an integer division of F_USB below, as it is sourced by | ||
| 12 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
| 13 | # does not *change* the processor frequency - it should merely be updated to | ||
| 14 | # reflect the processor speed set externally so that the code can use accurate | ||
| 15 | # software delays. | ||
| 16 | F_CPU = 16000000 | ||
| 17 | |||
| 18 | # | ||
| 19 | # LUFA specific | ||
| 20 | # | ||
| 21 | # Target architecture (see library "Board Types" documentation). | ||
| 22 | ARCH = AVR8 | ||
| 23 | |||
| 24 | # Input clock frequency. | ||
| 25 | # This will define a symbol, F_USB, in all source code files equal to the | ||
| 26 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
| 27 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
| 28 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
| 29 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
| 30 | # at the end, this will be done automatically to create a 32-bit value in your | ||
| 31 | # source code. | ||
| 32 | # | ||
| 33 | # If no clock division is performed on the input clock inside the AVR (via the | ||
| 34 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
| 35 | F_USB = $(F_CPU) | ||
| 36 | |||
| 37 | # Interrupt driven control endpoint task(+60) | ||
| 38 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 39 | |||
| 40 | |||
| 41 | # Boot Section Size in *bytes* | ||
| 42 | # Teensy halfKay 512 | ||
| 43 | # Teensy++ halfKay 1024 | ||
| 44 | # Atmel DFU loader 4096 | ||
| 45 | # LUFA bootloader 4096 | ||
| 46 | # USBaspLoader 2048 | ||
| 47 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
| 48 | |||
| 49 | # Build Options | ||
| 50 | # change to "no" to disable the options, or define them in the Makefile in | ||
| 51 | # the appropriate keymap folder that will get included automatically | ||
| 52 | # | ||
| 53 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 54 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 55 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 56 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 57 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 58 | NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 59 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 60 | MIDI_ENABLE = yes # MIDI controls | ||
| 61 | AUDIO_ENABLE = yes # Audio output on port C6 | ||
| 62 | UNICODE_ENABLE = no # Unicode | ||
| 63 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 64 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
| 65 | API_SYSEX_ENABLE = no | ||
| 66 | |||
| 67 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 68 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
