···42424343## Building
44444545-To build the firmware with the default keymap, run `make default`.
4545+To build the firmware with the default keymap, run `make phantom:default`.
+77
keyboards/phantom/keymaps/iso_uk/keymap.c
···11+/* Copyright 2017 Mathias Andersson <wraul@dbox.se>
22+ *
33+ * This program is free software: you can redistribute it and/or modify
44+ * it under the terms of the GNU General Public License as published by
55+ * the Free Software Foundation, either version 2 of the License, or
66+ * (at your option) any later version.
77+ *
88+ * This program is distributed in the hope that it will be useful,
99+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
1010+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1111+ * GNU General Public License for more details.
1212+ *
1313+ * You should have received a copy of the GNU General Public License
1414+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
1515+ */
1616+#include QMK_KEYBOARD_H
1717+1818+// Helpful defines
1919+#define _______ KC_TRNS
2020+2121+// Each layer gets a name for readability, which is then used in the keymap matrix below.
2222+// The underscores don't mean anything - you can have a layer called STUFF or any other name.
2323+// Layer names don't all need to be of the same length, obviously, and you can also skip them
2424+// entirely and just use numbers.
2525+#define _BL 0
2626+#define _FL 1
2727+2828+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
2929+ [_BL] = LAYOUT_tkl_iso(
3030+ KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_BRK, \
3131+ KC_GRV, 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, \
3232+ 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_DEL, KC_END, KC_PGDN, \
3333+ 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_NUHS, KC_ENT, \
3434+ KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, \
3535+ KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(_FL), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT \
3636+ ),
3737+ [_FL] = LAYOUT_tkl_iso(
3838+ _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MSTP, KC_MPLY, KC_MPRV, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, \
3939+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
4040+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
4141+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MSEL, \
4242+ _______, _______, _______, _______, KC_CALC, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
4343+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
4444+ ),
4545+};
4646+4747+const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
4848+{
4949+ // MACRODOWN only works in this function
5050+ switch(id) {
5151+ case 0:
5252+ if (record->event.pressed) {
5353+ register_code(KC_RSFT);
5454+ } else {
5555+ unregister_code(KC_RSFT);
5656+ }
5757+ break;
5858+ }
5959+ return MACRO_NONE;
6060+};
6161+6262+6363+void matrix_init_user(void) {
6464+6565+}
6666+6767+void matrix_scan_user(void) {
6868+6969+}
7070+7171+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
7272+ return true;
7373+}
7474+7575+void led_set_user(uint8_t usb_led) {
7676+7777+}
···6767BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
6868AUDIO_ENABLE = no # Audio output on port C6
6969FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
7070+7171+LAYOUTS = tkl_ansi tkl_iso