diff options
| author | Ibnu Daru Aji <ibnuda@users.noreply.github.com> | 2020-02-05 23:53:28 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-05 08:53:28 -0800 |
| commit | fb980cf0320dfd5ce46086113df69415e332aad4 (patch) | |
| tree | 4e574135b2c6eb18fd93b3d5624d36b27f42ca43 | |
| parent | d3286af398c76749cc57d807ff3513d6547e9a9a (diff) | |
| download | qmk_firmware-fb980cf0320dfd5ce46086113df69415e332aad4.tar.gz qmk_firmware-fb980cf0320dfd5ce46086113df69415e332aad4.zip | |
[Keyboard] Added Atreus Pro Micro variant (#8059)
* new alternative controller.
* following suggestions at qmk's 8059.
* forgot to replace some underscores and keycodes.
* following drashna's suggestions at qmk's 8059.
* following zvecr's suggestion in qmk's 8059.
* following noroadsleft's suggestion at qmk's 8059.
| -rw-r--r-- | keyboards/atreus/atreus.h | 2 | ||||
| -rw-r--r-- | keyboards/atreus/keymaps/ibnuda/config.h | 5 | ||||
| -rw-r--r-- | keyboards/atreus/keymaps/ibnuda/keymap.c | 258 | ||||
| -rw-r--r-- | keyboards/atreus/keymaps/ibnuda/rules.mk | 7 | ||||
| -rw-r--r-- | keyboards/atreus/promicro/config.h | 40 | ||||
| -rw-r--r-- | keyboards/atreus/promicro/promicro.c | 16 | ||||
| -rw-r--r-- | keyboards/atreus/promicro/promicro.h | 17 | ||||
| -rw-r--r-- | keyboards/atreus/promicro/rules.mk | 12 | ||||
| -rw-r--r-- | keyboards/atreus/readme.md | 5 |
9 files changed, 360 insertions, 2 deletions
diff --git a/keyboards/atreus/atreus.h b/keyboards/atreus/atreus.h index 88dd4d9dc..a3d350775 100644 --- a/keyboards/atreus/atreus.h +++ b/keyboards/atreus/atreus.h | |||
| @@ -24,6 +24,8 @@ | |||
| 24 | #include "astar_mirrored.h" | 24 | #include "astar_mirrored.h" |
| 25 | #elif KEYBOARD_atreus_teensy2 | 25 | #elif KEYBOARD_atreus_teensy2 |
| 26 | #include "teensy2.h" | 26 | #include "teensy2.h" |
| 27 | #elif KEYBOARD_atreus_promicro | ||
| 28 | #include "promicro.h" | ||
| 27 | #endif | 29 | #endif |
| 28 | 30 | ||
| 29 | // This a shortcut to help you visually see your layout. | 31 | // This a shortcut to help you visually see your layout. |
diff --git a/keyboards/atreus/keymaps/ibnuda/config.h b/keyboards/atreus/keymaps/ibnuda/config.h new file mode 100644 index 000000000..625abe488 --- /dev/null +++ b/keyboards/atreus/keymaps/ibnuda/config.h | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #define TAPPING_TERM 200 | ||
| 4 | #define IGNORE_MOD_TAP_INTERRUPT | ||
| 5 | #define COMBO_COUNT 15 | ||
diff --git a/keyboards/atreus/keymaps/ibnuda/keymap.c b/keyboards/atreus/keymaps/ibnuda/keymap.c new file mode 100644 index 000000000..3c1c0f450 --- /dev/null +++ b/keyboards/atreus/keymaps/ibnuda/keymap.c | |||
| @@ -0,0 +1,258 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | typedef enum { | ||
| 4 | SINGLE_TAP, | ||
| 5 | SINGLE_HOLD, | ||
| 6 | DOUBLE_TAP, | ||
| 7 | } td_state_t; | ||
| 8 | |||
| 9 | static td_state_t td_state; | ||
| 10 | |||
| 11 | int current_dance(qk_tap_dance_state_t *state); | ||
| 12 | |||
| 13 | void dance_tmb_finished(qk_tap_dance_state_t *state, void *user_data); | ||
| 14 | void dance_tmb_reset(qk_tap_dance_state_t *state, void *user_data); | ||
| 15 | |||
| 16 | // enum for tap dances. | ||
| 17 | enum { | ||
| 18 | TD_DLT_CTLDLT = 0, | ||
| 19 | TD_SCLN_CLN, | ||
| 20 | TD_LEFT_THUMB, | ||
| 21 | }; | ||
| 22 | |||
| 23 | // enum for combos. | ||
| 24 | enum combos { | ||
| 25 | // left hand combinations. | ||
| 26 | COLON_COMMA, | ||
| 27 | COMMA_DOT, | ||
| 28 | DOT_P, | ||
| 29 | Q_J, | ||
| 30 | J_K, | ||
| 31 | |||
| 32 | // right hand combinations. | ||
| 33 | L_R, | ||
| 34 | R_C, | ||
| 35 | C_G, | ||
| 36 | V_W, | ||
| 37 | W_M, | ||
| 38 | |||
| 39 | // both hands combinations. | ||
| 40 | DOT_C, | ||
| 41 | J_W, | ||
| 42 | P_G, | ||
| 43 | U_H, | ||
| 44 | K_M, | ||
| 45 | }; | ||
| 46 | |||
| 47 | enum { | ||
| 48 | _BASE, | ||
| 49 | _LOWER, | ||
| 50 | _RAISE, | ||
| 51 | _ADJUST, | ||
| 52 | _MUIS | ||
| 53 | }; | ||
| 54 | |||
| 55 | // thumb keys. | ||
| 56 | #define ALT_ENT ALT_T(KC_ENT) | ||
| 57 | #define SFT_ESC SFT_T(KC_ESC) | ||
| 58 | |||
| 59 | // home row mods. | ||
| 60 | #define CT_O RCTL_T(KC_O) | ||
| 61 | #define CT_N RCTL_T(KC_N) | ||
| 62 | #define SH_A RSFT_T(KC_A) | ||
| 63 | #define SH_S RSFT_T(KC_S) | ||
| 64 | #define AL_E RALT_T(KC_E) | ||
| 65 | #define AL_T RALT_T(KC_T) | ||
| 66 | #define GU_I RGUI_T(KC_I) | ||
| 67 | #define GU_D RGUI_T(KC_D) | ||
| 68 | |||
| 69 | // layer toggle. | ||
| 70 | #define LW_BSPC LT(_LOWER, KC_BSPC) | ||
| 71 | #define RS_SPC LT(_RAISE, KC_SPC) | ||
| 72 | #define RS_D LT(_RAISE, KC_D) | ||
| 73 | #define LW_I LT(_LOWER, KC_I) | ||
| 74 | #define MU_QUOT LT(_MUIS, KC_QUOT) | ||
| 75 | #define MU_Z LT(_MUIS, KC_Z) | ||
| 76 | |||
| 77 | // idk, man. not used, i guess. | ||
| 78 | #define RAISE MO(_RAISE) | ||
| 79 | #define LOWER MO(_LOWER) | ||
| 80 | #define ADDDD MO(_ADJUST) | ||
| 81 | #define MUIS MO(_MUIS) | ||
| 82 | |||
| 83 | // common shortcuts for windows and linux that i use. | ||
| 84 | #define NXTTAB LCTL(KC_PGDN) | ||
| 85 | #define PRVTAB LCTL(KC_PGUP) | ||
| 86 | #define UPTAB LCTL(LSFT(KC_PGUP)) | ||
| 87 | #define DNTAB LCTL(LSFT(KC_PGDN)) | ||
| 88 | #define NXTWIN LALT(KC_TAB) | ||
| 89 | #define PRVWIN LALT(LSFT(KC_TAB)) | ||
| 90 | #define CALDL LCTL(LALT(KC_DELT)) | ||
| 91 | #define TSKMGR LCTL(LSFT(KC_ESC)) | ||
| 92 | #define EXPLR LGUI(KC_E) | ||
| 93 | #define LCKGUI LGUI(KC_L) | ||
| 94 | #define CONPST LSFT(KC_INS) | ||
| 95 | #define CLSGUI LALT(KC_F4) | ||
| 96 | |||
| 97 | // tap dances | ||
| 98 | #define CTL_DLT TD(TD_DLT_CTLDLT) | ||
| 99 | #define SM_CLN TD(TD_SCLN_CLN) | ||
| 100 | #define LFT_TMB TD(TD_LEFT_THUMB) | ||
| 101 | |||
| 102 | // left hand combinations. | ||
| 103 | const uint16_t PROGMEM colon_comma_combo[] = {KC_SCLN, KC_COMM, COMBO_END}; | ||
| 104 | const uint16_t PROGMEM comma_dot_combo[] = {KC_COMM, KC_DOT, COMBO_END}; | ||
| 105 | const uint16_t PROGMEM dot_p_combo[] = {KC_DOT, KC_P, COMBO_END}; | ||
| 106 | const uint16_t PROGMEM q_j_combo[] = {KC_Q, KC_J, COMBO_END}; | ||
| 107 | const uint16_t PROGMEM j_k_combo[] = {KC_J, KC_K, COMBO_END}; | ||
| 108 | |||
| 109 | // right hand combinations. | ||
| 110 | const uint16_t PROGMEM l_r_combo[] = {KC_L, KC_R, COMBO_END}; | ||
| 111 | const uint16_t PROGMEM r_c_combo[] = {KC_R, KC_C, COMBO_END}; | ||
| 112 | const uint16_t PROGMEM c_g_combo[] = {KC_C, KC_G, COMBO_END}; | ||
| 113 | const uint16_t PROGMEM v_w_combo[] = {KC_V, KC_W, COMBO_END}; | ||
| 114 | const uint16_t PROGMEM w_m_combo[] = {KC_W, KC_M, COMBO_END}; | ||
| 115 | |||
| 116 | // both hand combinations. | ||
| 117 | const uint16_t PROGMEM dot_c_combo[] = {KC_DOT, KC_C, COMBO_END}; | ||
| 118 | const uint16_t PROGMEM j_w_combo[] = {KC_J, KC_W, COMBO_END}; | ||
| 119 | const uint16_t PROGMEM u_h_combo[] = {KC_U, KC_H, COMBO_END}; | ||
| 120 | const uint16_t PROGMEM p_g_combo[] = {KC_P, KC_G, COMBO_END}; | ||
| 121 | const uint16_t PROGMEM k_m_combo[] = {KC_K, KC_M, COMBO_END}; | ||
| 122 | |||
| 123 | combo_t key_combos[COMBO_COUNT] = { | ||
| 124 | // left hand combinations. | ||
| 125 | [COLON_COMMA] = COMBO(colon_comma_combo, KC_TAB), | ||
| 126 | [COMMA_DOT] = COMBO(comma_dot_combo, KC_QUES), | ||
| 127 | [DOT_P] = COMBO(dot_p_combo, KC_UNDS), | ||
| 128 | [Q_J] = COMBO(q_j_combo, LCTL(KC_W)), | ||
| 129 | [J_K] = COMBO(j_k_combo, KC_DELT), | ||
| 130 | |||
| 131 | // right hand combinations. | ||
| 132 | [L_R] = COMBO(l_r_combo, KC_BSPC), | ||
| 133 | [R_C] = COMBO(r_c_combo, KC_SLSH), | ||
| 134 | [C_G] = COMBO(c_g_combo, KC_MINS), | ||
| 135 | [V_W] = COMBO(v_w_combo, KC_APP), | ||
| 136 | [W_M] = COMBO(w_m_combo, KC_DELT), | ||
| 137 | |||
| 138 | // both hand combinations. | ||
| 139 | [DOT_C] = COMBO(dot_c_combo, KC_PGUP), | ||
| 140 | [J_W] = COMBO(j_w_combo, KC_PGDN), | ||
| 141 | [U_H] = COMBO(u_h_combo, KC_ENT), | ||
| 142 | [P_G] = COMBO(p_g_combo, KC_HOME), | ||
| 143 | [K_M] = COMBO(k_m_combo, KC_END), | ||
| 144 | }; | ||
| 145 | |||
| 146 | void dance_dlt_finished(qk_tap_dance_state_t *state, void *user_data) { | ||
| 147 | if (state->count == 1) { | ||
| 148 | register_code16(KC_DELT); | ||
| 149 | } else { | ||
| 150 | register_code16(C(KC_DELT)); | ||
| 151 | } | ||
| 152 | } | ||
| 153 | |||
| 154 | void dance_dlt_reset(qk_tap_dance_state_t *state, void *user_data) { | ||
| 155 | if (state->count == 1) { | ||
| 156 | unregister_code16(KC_DELT); | ||
| 157 | } else { | ||
| 158 | unregister_code16(C(KC_DELT)); | ||
| 159 | } | ||
| 160 | } | ||
| 161 | |||
| 162 | void dance_cln_finished(qk_tap_dance_state_t *state, void *user_data) { | ||
| 163 | if (state->count == 1) { | ||
| 164 | register_code(KC_LSFT); | ||
| 165 | } | ||
| 166 | register_code(KC_SCLN); | ||
| 167 | } | ||
| 168 | |||
| 169 | void dance_cln_reset(qk_tap_dance_state_t *state, void *user_data) { | ||
| 170 | if (state->count == 1) { | ||
| 171 | unregister_code(KC_LSFT); | ||
| 172 | } | ||
| 173 | unregister_code(KC_SCLN); | ||
| 174 | } | ||
| 175 | |||
| 176 | int current_dance(qk_tap_dance_state_t *state) { | ||
| 177 | if (state->count == 1) { | ||
| 178 | if (state->interrupted || !state->pressed) { | ||
| 179 | return SINGLE_TAP; | ||
| 180 | } else { | ||
| 181 | return SINGLE_HOLD; | ||
| 182 | } | ||
| 183 | } | ||
| 184 | if (state->count == 2) { | ||
| 185 | return DOUBLE_TAP; | ||
| 186 | } else { | ||
| 187 | return 3; | ||
| 188 | } | ||
| 189 | } | ||
| 190 | |||
| 191 | void dance_tmb_finished(qk_tap_dance_state_t *state, void *user_data) { | ||
| 192 | td_state = current_dance(state); | ||
| 193 | switch (td_state) { | ||
| 194 | case SINGLE_TAP: | ||
| 195 | register_code16(KC_ESC); | ||
| 196 | break; | ||
| 197 | case SINGLE_HOLD: | ||
| 198 | register_mods(MOD_BIT(KC_LSFT)); | ||
| 199 | break; | ||
| 200 | case DOUBLE_TAP: | ||
| 201 | register_code16(KC_DELT); | ||
| 202 | break; | ||
| 203 | } | ||
| 204 | } | ||
| 205 | |||
| 206 | void dance_tmb_reset(qk_tap_dance_state_t *state, void *user_data) { | ||
| 207 | switch (td_state) { | ||
| 208 | case SINGLE_TAP: | ||
| 209 | unregister_code16(KC_ESC); | ||
| 210 | break; | ||
| 211 | case SINGLE_HOLD: | ||
| 212 | unregister_mods(MOD_BIT(KC_LSFT)); | ||
| 213 | break; | ||
| 214 | case DOUBLE_TAP: | ||
| 215 | unregister_code16(KC_DELT); | ||
| 216 | break; | ||
| 217 | } | ||
| 218 | } | ||
| 219 | |||
| 220 | qk_tap_dance_action_t tap_dance_actions[] = { | ||
| 221 | [TD_DLT_CTLDLT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_dlt_finished, dance_dlt_reset), | ||
| 222 | [TD_SCLN_CLN] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_cln_finished, dance_cln_reset), | ||
| 223 | [TD_LEFT_THUMB] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_tmb_finished, dance_tmb_reset), | ||
| 224 | }; | ||
| 225 | |||
| 226 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 227 | [_BASE] = LAYOUT( | ||
| 228 | SM_CLN, KC_COMM,KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, | ||
| 229 | SH_A, CT_O, AL_E, KC_U, GU_I, GU_D, KC_H, AL_T, CT_N, SH_S, | ||
| 230 | MU_QUOT,KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, MU_Z, | ||
| 231 | _______,_______,_______,_______,LW_BSPC,SFT_ESC, ALT_ENT,RS_SPC, _______,_______,_______,_______ | ||
| 232 | ), | ||
| 233 | |||
| 234 | [_RAISE] = LAYOUT( | ||
| 235 | KC_EXLM,KC_AT, KC_UP, KC_LCBR,KC_RCBR, KC_BSLS,KC_7, KC_8, KC_9, KC_ASTR , | ||
| 236 | KC_HASH,KC_LEFT,KC_DOWN,KC_RGHT,KC_DLR, KC_EQL, KC_4, KC_5, KC_6, KC_TILD , | ||
| 237 | KC_LBRC,KC_RBRC,KC_LPRN,KC_RPRN,KC_AMPR, KC_GRV, KC_1, KC_2, KC_3, KC_PLUS , | ||
| 238 | _______,_______,_______,_______,ADDDD, _______, ALT_ENT,RS_SPC, _______,KC_0, _______,_______ | ||
| 239 | ), | ||
| 240 | [_LOWER] = LAYOUT( | ||
| 241 | KC_ESC, KC_QUES,KC_UNDS,KC_F1, KC_F2, KC_F3, KC_F4, KC_MINS,KC_SLSH,KC_BSPC , | ||
| 242 | KC_LSFT,KC_TAB, KC_PGUP,KC_F5, KC_F6, KC_F7, KC_F8, KC_HOME,KC_LALT,KC_ENT , | ||
| 243 | KC_CLCK,KC_SLCK,KC_PGDN,KC_F9, KC_F10, KC_F11, KC_F12, KC_END, KC_INS, KC_SLSH , | ||
| 244 | _______,_______,_______,_______,ADDDD, _______, KC_DELT,ADDDD, _______,_______,_______,_______ | ||
| 245 | ), | ||
| 246 | [_ADJUST] = LAYOUT( | ||
| 247 | _______,EXPLR, KC_UP, PRVTAB, PRVWIN, NXTWIN, NXTTAB, _______,_______,LCKGUI, | ||
| 248 | TSKMGR, KC_LEFT,KC_DOWN,KC_RGHT,UPTAB, DNTAB, KC_ENT, KC_LGUI,_______,CALDL, | ||
| 249 | _______,CLSGUI, _______,CONPST, RESET, _______,_______,_______,_______,_______, | ||
| 250 | _______,_______,_______,_______,_______,_______, _______,_______,_______,_______,_______,_______ | ||
| 251 | ), | ||
| 252 | [_MUIS] = LAYOUT( | ||
| 253 | _______,KC_BTN2,KC_MS_U,KC_BTN1,_______, _______,KC_BTN1,KC_MS_U,KC_BTN2,_______, | ||
| 254 | _______,KC_MS_L,KC_MS_D,KC_MS_R,_______, _______,KC_MS_L,KC_MS_D,KC_MS_R,_______, | ||
| 255 | _______,_______,KC_WH_D,KC_WH_U,_______, _______,KC_WH_U,KC_WH_D,_______,_______, | ||
| 256 | _______,_______,_______,_______,_______,_______, _______,_______,_______,_______,_______,_______ | ||
| 257 | ), | ||
| 258 | }; | ||
diff --git a/keyboards/atreus/keymaps/ibnuda/rules.mk b/keyboards/atreus/keymaps/ibnuda/rules.mk new file mode 100644 index 000000000..ce80219d1 --- /dev/null +++ b/keyboards/atreus/keymaps/ibnuda/rules.mk | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | # Build Options | ||
| 2 | # change yes to no to disable | ||
| 3 | # | ||
| 4 | |||
| 5 | MOUSEKEY_ENABLE = yes | ||
| 6 | COMBO_ENABLE = yes | ||
| 7 | TAP_DANCE_ENABLE = yes | ||
diff --git a/keyboards/atreus/promicro/config.h b/keyboards/atreus/promicro/config.h new file mode 100644 index 000000000..03b63f6ff --- /dev/null +++ b/keyboards/atreus/promicro/config.h | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | /* Copyright 2019 | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 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 | #pragma once | ||
| 18 | |||
| 19 | #include "config_common.h" | ||
| 20 | |||
| 21 | /* | ||
| 22 | * Keyboard Matrix Assignments | ||
| 23 | * | ||
| 24 | * Change this to how you wired your keyboard | ||
| 25 | * COLS: AVR pins used for columns, left to right | ||
| 26 | * ROWS: AVR pins used for rows, top to bottom | ||
| 27 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 28 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 29 | * | ||
| 30 | */ | ||
| 31 | #define MATRIX_ROW_PINS { F4, B2, B4, B5 } | ||
| 32 | #if defined(PCBDOWN) | ||
| 33 | #define MATRIX_COL_PINS { D0, D4, C6, D7, E6, B6, B3, B1, F7, F6, F5 } | ||
| 34 | #else | ||
| 35 | #define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B6, E6, D7, C6, D4, D0 } | ||
| 36 | #endif | ||
| 37 | #define UNUSED_PINS | ||
| 38 | |||
| 39 | /* COL2ROW, ROW2COL*/ | ||
| 40 | #define DIODE_DIRECTION COL2ROW | ||
diff --git a/keyboards/atreus/promicro/promicro.c b/keyboards/atreus/promicro/promicro.c new file mode 100644 index 000000000..ad08ac9f0 --- /dev/null +++ b/keyboards/atreus/promicro/promicro.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | /* Copyright 2020 | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 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 | #include "promicro.h" | ||
diff --git a/keyboards/atreus/promicro/promicro.h b/keyboards/atreus/promicro/promicro.h new file mode 100644 index 000000000..bf74ceb17 --- /dev/null +++ b/keyboards/atreus/promicro/promicro.h | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2019 | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 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 | #pragma once | ||
diff --git a/keyboards/atreus/promicro/rules.mk b/keyboards/atreus/promicro/rules.mk new file mode 100644 index 000000000..e6fef5172 --- /dev/null +++ b/keyboards/atreus/promicro/rules.mk | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | # Teensy halfkay | ||
| 6 | # Pro Micro caterina | ||
| 7 | # Atmel DFU atmel-dfu | ||
| 8 | # LUFA DFU lufa-dfu | ||
| 9 | # QMK DFU qmk-dfu | ||
| 10 | # ATmega32A bootloadHID | ||
| 11 | # ATmega328P USBasp | ||
| 12 | BOOTLOADER = caterina | ||
diff --git a/keyboards/atreus/readme.md b/keyboards/atreus/readme.md index 0dbd098ca..0f499ca2a 100644 --- a/keyboards/atreus/readme.md +++ b/keyboards/atreus/readme.md | |||
| @@ -16,8 +16,9 @@ Make example for this keyboard (after setting up your build environment): | |||
| 16 | 16 | ||
| 17 | If you would like to use one of the alternative controllers: | 17 | If you would like to use one of the alternative controllers: |
| 18 | 18 | ||
| 19 | make atreus/astar:default:avrdude | 19 | make atreus/astar:default:flash |
| 20 | make atreus/teensy2:default:teensy | 20 | make atreus/teensy2:default:flash |
| 21 | make atreus/promicro:default:flash | ||
| 21 | 22 | ||
| 22 | If your keyboard layout is a mirror image of what you expected (i.e. you do not get QWERTY on the left but YTREWQ on the right), then you have an A-Star powered Atreus (older than March 2016) with PCB labels facing *down* instead of up. Specify that by adding `PCBDOWN=yes` to your `make` commands, e.g. | 23 | If your keyboard layout is a mirror image of what you expected (i.e. you do not get QWERTY on the left but YTREWQ on the right), then you have an A-Star powered Atreus (older than March 2016) with PCB labels facing *down* instead of up. Specify that by adding `PCBDOWN=yes` to your `make` commands, e.g. |
| 23 | 24 | ||
