summaryrefslogtreecommitdiff
path: root/keyboards/tanuki
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/tanuki')
-rw-r--r--keyboards/tanuki/keymaps/default/keymap.c206
-rw-r--r--keyboards/tanuki/keymaps/tucznak/config.h27
-rw-r--r--keyboards/tanuki/keymaps/tucznak/keymap.c116
-rw-r--r--keyboards/tanuki/keymaps/tucznak/readme.md8
-rw-r--r--keyboards/tanuki/keymaps/tucznak/rules.mk19
-rw-r--r--keyboards/tanuki/rules.mk56
6 files changed, 272 insertions, 160 deletions
diff --git a/keyboards/tanuki/keymaps/default/keymap.c b/keyboards/tanuki/keymaps/default/keymap.c
index 34ca6a639c..7c3e11f27d 100644
--- a/keyboards/tanuki/keymaps/default/keymap.c
+++ b/keyboards/tanuki/keymaps/default/keymap.c
@@ -1,140 +1,120 @@
#include QMK_KEYBOARD_H
-//Layer definitions
+// custom type to store stuff in EEPROM
+typedef union {
+ uint32_t raw;
+ struct {
+ bool layer_rgb :1;
+ };
+} user_config_t;
+
+user_config_t user_config;
+
+// Layer definitions
#define _BL 0
#define _DL 1
#define _UL 2
#define _GL 3
#define _BK 4
-
-//other variables
-int mCalled = 0;
-bool blockToggle = false;
-bool lRGB = true;
+// Custom keycode to toggle normal RGB or per-layer RGB
+enum custom_keycodes {
+ CUSTRGB = SAFE_RANGE,
+};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_BL] = LAYOUT(
- KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \
- KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, TG(_GL), \
- KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_QUOT, KC_SLSH, KC_ENT, \
- KC_LCTL, KC_LALT, KC_COMMA, LT(_DL,KC_SPC), LT(_UL,KC_SPC), KC_DOT, KC_LGUI),
+ KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \
+ KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, TG(_GL), \
+ KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_QUOT, KC_SLSH, KC_ENT, \
+ KC_LCTL, KC_LALT, KC_COMMA, LT(_DL,KC_SPC), LT(_UL,KC_SPC), KC_DOT, KC_LGUI),
[_DL] = LAYOUT(
- 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_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS,\
- KC_TRNS, KC_PSCR, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
- KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
+ 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_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS,\
+ KC_TRNS, KC_PSCR, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
+ KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
[_UL] = LAYOUT(
- KC_GRV, KC_LBRC, KC_RBRC, KC_LCBR, KC_RCBR, KC_PIPE, KC_BSLS, KC_PLUS, KC_UNDS, KC_MINS, KC_EQL, KC_DEL,\
- KC_TRNS, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_TRNS, \
- KC_TRNS, KC_FN0, RGB_TOG, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_SAD, RGB_VAD, KC_TRNS, KC_TRNS, \
- KC_TRNS, RGB_MOD, RGB_HUI, KC_TRNS, KC_TRNS, RGB_SAI, RGB_VAI),
+ KC_GRV, KC_LBRC, KC_RBRC, KC_LCBR, KC_RCBR, KC_PIPE, KC_BSLS, KC_PLUS, KC_UNDS, KC_MINS, KC_EQL, KC_DEL,\
+ KC_TRNS, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_TRNS, \
+ KC_TRNS, CUSTRGB, RGB_TOG, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_SAD, RGB_VAD, KC_TRNS, KC_TRNS, \
+ KC_TRNS, RGB_MOD, RGB_HUI, KC_TRNS, KC_TRNS, RGB_SAI, RGB_VAI),
[_GL] = LAYOUT(
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, \
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, 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, KC_SPC, KC_SPC, KC_TRNS, KC_TRNS),
-
-[_BK] = LAYOUT(
- 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, 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, KC_TRNS, KC_NO, KC_NO, KC_TRNS, KC_TRNS, \
- KC_TRNS, KC_NO, KC_NO, KC_TRNS, KC_FN1, KC_NO, KC_NO),
-
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, \
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, 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, KC_SPC, KC_SPC, KC_TRNS, KC_TRNS)
+
};
-
-//KC_MPLY, KC_VOLU, KC_VOLD, KC_TRNS, KC_TRNS, KC_MNXT, KC_MPRV
-//function to toggle the interactive rgb variable
-bool toggleLayerRGB(void){
- if(lRGB == true){
- return false;
- }
- else{
- return true;
- }
+void keyboard_post_init_user(void) {
+ user_config.raw = eeconfig_read_user();
+ if(user_config.layer_rgb) {
+ rgblight_enable_noeeprom();
+ rgblight_mode_noeeprom(1);
+ rgblight_sethsv_noeeprom(0,10,255);
+ }
}
-void matrix_init_user(void){
- rgblight_enable();
- rgblight_mode(1);
- rgblight_sethsv(0,10,255);
+uint32_t layer_state_set_user(uint32_t state) {
+ // This code switches underglow color by active layer, if the user has enabled the feature
+ if(user_config.layer_rgb) {
+ switch (biton32(state)) {
+ case _BL:
+ rgblight_sethsv_noeeprom(0,10,255);
+ rgblight_mode_noeeprom(1);
+ break;
+ case _DL:
+ rgblight_sethsv_noeeprom(130,200,255);
+ rgblight_mode_noeeprom(1);
+ break;
+ case _UL:
+ rgblight_sethsv_noeeprom(170,200,255);
+ rgblight_mode_noeeprom(1);
+ break;
+ case _GL:
+ rgblight_sethsv_noeeprom(0,180,255);
+ rgblight_mode_noeeprom(1);
+ break;
+ }
+ }
+ return state;
}
-//check for layer and if there was a keypress change underglow lighting
-void matrix_scan_kb(void){
- if(lRGB == true)
- {
-
-
-
- //base layer
- if(layer_state == 0x00000000 && mCalled == 1 ){
- rgblight_sethsv(0,10,255);
- mCalled = 0;
- }
-
- //down layer
- else if(layer_state == 0x00000002 && mCalled == 1){
- rgblight_sethsv(160,255,255);
- mCalled = 0;
- }
-
-
- //up layer with rgb access blocked
- else if(layer_state == 0x00000004 && mCalled == 1 && lRGB == true){
- //blockToggle = true;
- layer_state = 0x00000014;
- rgblight_sethsv(180,255,255);
- mCalled = 0;
- }
-
- //arrow cluster layer
- else if(layer_state == 0x00000008 && mCalled == 1){
- rgblight_sethsv(0,180,255);
- mCalled = 0;
- }
-
- //if on blocked layer and the spacebar has been released reset to baselayer and set colours to white
- else if(layer_state == 0x00000014 && blockToggle == true )
- {
- blockToggle = false;
- layer_state = 0x00000000;
- rgblight_sethsv(0,10,255);
- }
-
- }
-}
-
-//set mCalled to 1 when a button is pressed to make sure the leds aren't continuesly updated.
bool process_record_user (uint16_t keycode, keyrecord_t *record) {
- mCalled = 1;
-
- //uncommenting the line below causes the lights to flicker when typing on the keyboard.
- //rgblight_sethsv(0,255,0);
-
- if(keycode == KC_FN0 && record->event.pressed){
- //set the toggle and make sure to set the colour back to white
- lRGB = toggleLayerRGB();
- rgblight_enable();
- rgblight_mode(1);
- rgblight_sethsv(0,255,255);
- layer_state =0x00000000;
-
- return false;
- }
-
- //check if spacebar is released when on a different layer
- if(keycode == KC_FN1){
- if(record ->event.pressed){
- }else{
- blockToggle = true;
- }
- }
+ switch (keycode) {
+ case CUSTRGB: // if the user toggled per-layer RGB, update the config and refresh the RGB color
+ if(record->event.pressed) {
+ user_config.layer_rgb ^= 1;
+ eeconfig_update_user(user_config.raw);
+ if (user_config.layer_rgb) {
+ layer_state_set(layer_state);
+ }
+ }
+ return false;
+ break;
+ case RGB_MOD:
+ case RGB_SAD:
+ case RGB_SAI:
+ case RGB_HUI:
+ case RGB_VAD:
+ case RGB_VAI:
+ if(user_config.layer_rgb && record->event.pressed) {
+ return false; // if layer RGB is on, ignore attempts to change RGB settings
+ }
+ break;
+ }
+ return true;
+}
- return true;
+void eeconfig_init_user(void) { // in case EEPROM is reset, set up our custom config
+ user_config.raw = 0;
+ user_config.layer_rgb = true; // enable per-layer RGB by default
+ eeconfig_update_user(user_config.raw);
+ rgblight_enable();
+ rgblight_sethsv(0,10,255);
+ rgblight_mode(1);
}
diff --git a/keyboards/tanuki/keymaps/tucznak/config.h b/keyboards/tanuki/keymaps/tucznak/config.h
new file mode 100644
index 0000000000..3a140193d8
--- /dev/null
+++ b/keyboards/tanuki/keymaps/tucznak/config.h
@@ -0,0 +1,27 @@
+#pragma once
+
+#undef MANUFACTURER
+#undef PRODUCT
+#undef DESCRIPTION
+
+#define MANUFACTURER Potato Inc.
+#define PRODUCT Trash Panda
+#define DESCRIPTION Qt3.14 smolkeeb
+
+/* for bootloader */
+#define QMK_ESC_OUTPUT B2
+#define QMK_ESC_INPUT D0
+#define QMK_LED B0
+
+/* turn off RGB when computer sleeps */
+#ifdef RGBLIGHT_ENABLE
+#define RGBLIGHT_SLEEP
+#endif
+
+/* send tap key if no layer key was used even after tap delay */
+#ifdef TAPPING_TERM
+#undef TAPPING_TERM
+#endif
+#define TAPPING_TERM 250
+#define RETRO_TAPPING
+#define TAPPING_TOGGLE 2
diff --git a/keyboards/tanuki/keymaps/tucznak/keymap.c b/keyboards/tanuki/keymaps/tucznak/keymap.c
new file mode 100644
index 0000000000..301f0f8419
--- /dev/null
+++ b/keyboards/tanuki/keymaps/tucznak/keymap.c
@@ -0,0 +1,116 @@
+#include QMK_KEYBOARD_H
+
+enum layers {
+ _BASE,
+ _DN,
+ _UP,
+ _NAV,
+ _FN
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+ /* Base layer (0)
+ * ,------------------------------------------------------------------------.
+ * | Esc | Q | W | E | R | T | Y | U | I | O | P | Bksp |
+ * |-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+------|
+ * | Tab | A | S | D | F | G | H | J | K | L | ů | Nav |
+ * `------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----'
+ * | Shift | Z | X | C | V | B | N | M | , | . |Enter |
+ * `-------+-----+-----+-----+-----+-----+-----+-----+-----+-----+------'
+ * | Ctrl | GUI |LAlt | Space | SpaceUp |AltGr| Down |
+ * `--------------------------------------------------------'
+ */
+
+ [_BASE] = LAYOUT(
+ KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
+ KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, TT(_NAV),
+ KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_ENT,
+ KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, LT(_UP,KC_SPC), KC_RALT, MO(_DN)
+ ),
+
+ /* Down layer (1)
+ * function keys and numbers
+ * ,------------------------------------------------------------------------.
+ * | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 |
+ * |-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+------|
+ * | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | |
+ * `------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----'
+ * | |NumLk| | | + | - | * | / | , | . | |
+ * `-------+-----+-----+-----+-----+-----+-----+-----+-----+-----+------'
+ * | Fn | | | C+A+D | C+A+I | | |
+ * `--------------------------------------------------------'
+ */
+
+ [_DN] = LAYOUT(
+ 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_KP_1, KC_KP_2, KC_KP_3, KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_0, _______,
+ _______, KC_NLCK, _______, _______, KC_PPLS, KC_PMNS, KC_PAST, KC_PSLS, KC_COMM, KC_DOT, _______,
+ MO(_FN), _______, _______, LCA(KC_DEL), LCA(KC_INS), _______, _______
+ ),
+
+ /* Up layer (2)
+ * national and special characters
+ * ,------------------------------------------------------------------------.
+ * | +1 | ě2 | š3 | č4 | ř5 | ž6 | ý7 | á8 | í9 | é0 | ´ | ˇ |
+ * |-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+------|
+ * | ;° | | | | | | ( | ) | § | ! | / | ú | |
+ * `------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----'
+ * | | | | \ | % | = | ¨ | ' | - | _ | |
+ * `-------+-----+-----+-----+-----+-----+-----+-----+-----+-----+------'
+ * | | | | | | | |
+ * `--------------------------------------------------------'
+ */
+
+ [_UP] = LAYOUT(
+ KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_EQL, LSFT(KC_EQL),
+ KC_GRV, _______, _______, _______, LSFT(KC_NUBS), LSFT(KC_RBRC), KC_RBRC, KC_QUOT, LSFT(KC_QUOT), LSFT(KC_LBRC), KC_LBRC, _______,
+ _______, _______, _______, KC_NUBS, LSFT(KC_MINS), KC_MINS, KC_BSLS, LSFT(KC_BSLS), KC_SLSH, LSFT(KC_SLSH), _______,
+ _______, _______, _______, _______, _______, _______, _______
+ ),
+
+ /* Navigation layer (3)
+ * arrows, nav cluster
+ * ,------------------------------------------------------------------------.
+ * | | | | | |Home |PgUp | | | Up | Ins | Del |
+ * |-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+------|
+ * | | | | | | End |PgDn | |Left |Down |Right| |
+ * `------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----'
+ * | |Caps |PrtSc|ScrLk|Pause| | | | | | |
+ * `-------+-----+-----+-----+-----+-----+-----+-----+-----+-----+------'
+ * | | | | | | | Menu |
+ * `--------------------------------------------------------'
+ */
+
+ [_NAV] = LAYOUT(
+ _______, _______, _______, _______, _______, KC_HOME, KC_PGUP, _______, _______, KC_UP, KC_INS, KC_DEL,
+ _______, _______, _______, _______, _______, KC_END, KC_PGDN, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______,
+ _______, KC_CAPS, KC_PSCR, KC_SLCK, KC_PAUS, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, KC_APP
+ ),
+
+ /* Function layer (4)
+ * keyboard and system control
+ * ,------------------------------------------------------------------------.
+ * |Reset| | | | | | |Play |Prev |Next |Stop | |
+ * |-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+------|
+ * |Sleep | VLK |Mod+ |Hue+ |Sat+ |Val+ | | |Vol- |Vol+ |Mute | |
+ * `------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----'
+ * | | TOG |Mod- |Hue- |Sat- |Val- | | | | | |
+ * `-------+-----+-----+-----+-----+-----+-----+-----+-----+-----+------'
+ * | | | | | | | |
+ * `--------------------------------------------------------'
+ */
+
+ [_FN] = LAYOUT(
+ RESET, _______, _______, _______, _______, _______, _______, KC_MPLY, KC_MPRV, KC_MNXT, KC_MSTP, _______,
+ KC_SLEP, VLK_TOG, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, KC_VOLD, KC_VOLU, KC_MUTE, _______,
+ _______, RGB_TOG, RGB_RMOD, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______
+ )
+
+};
+
+bool process_record_user (uint16_t keycode, keyrecord_t *record) {
+ return true;
+}
diff --git a/keyboards/tanuki/keymaps/tucznak/readme.md b/keyboards/tanuki/keymaps/tucznak/readme.md
new file mode 100644
index 0000000000..b38490c9c5
--- /dev/null
+++ b/keyboards/tanuki/keymaps/tucznak/readme.md
@@ -0,0 +1,8 @@
+# TuCZnak's modified layout
+
+This layout is optimized for Czech national QWERTZ keymap.
+It includes separated layers for:
+ - F-keys and numbers
+ - national and special characters
+ - navigation cluster
+ - keyboard config and media control
diff --git a/keyboards/tanuki/keymaps/tucznak/rules.mk b/keyboards/tanuki/keymaps/tucznak/rules.mk
new file mode 100644
index 0000000000..5c5263eae7
--- /dev/null
+++ b/keyboards/tanuki/keymaps/tucznak/rules.mk
@@ -0,0 +1,19 @@
+# screw Caterina
+BOOTLOADER = qmk-dfu
+
+# Build Options
+# comment out to disable the options.
+#
+BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
+MOUSEKEY_ENABLE = no # Mouse keys(+4700)
+EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
+CONSOLE_ENABLE = no # Console for debug(+400)
+COMMAND_ENABLE = no # Commands for debug and configuration
+NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
+RGBLIGHT_ENABLE =yes # Enable keyboard underlight functionality (+4870)
+BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality (+1150)
+MIDI_ENABLE = no # MIDI controls
+AUDIO_ENABLE = no
+UNICODE_ENABLE = no # Unicode
+BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
+TAP_DANCE_ENABLE = no
diff --git a/keyboards/tanuki/rules.mk b/keyboards/tanuki/rules.mk
index fd3c058304..516c3db5e6 100644
--- a/keyboards/tanuki/rules.mk
+++ b/keyboards/tanuki/rules.mk
@@ -1,52 +1,15 @@
-
-
# MCU name
MCU = atmega32u4
-# Processor frequency.
-# This will define a symbol, F_CPU, in all source code files equal to the
-# processor frequency in Hz. You can then use this symbol in your source code to
-# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
-# automatically to create a 32-bit value in your source code.
-#
-# This will be an integer division of F_USB below, as it is sourced by
-# F_USB after it has run through any CPU prescalers. Note that this value
-# does not *change* the processor frequency - it should merely be updated to
-# reflect the processor speed set externally so that the code can use accurate
-# software delays.
-F_CPU = 16000000
-
-
-#
-# LUFA specific
-#
-# Target architecture (see library "Board Types" documentation).
-ARCH = AVR8
-
-# Input clock frequency.
-# This will define a symbol, F_USB, in all source code files equal to the
-# input clock frequency (before any prescaling is performed) in Hz. This value may
-# differ from F_CPU if prescaling is used on the latter, and is required as the
-# raw input clock is fed directly to the PLL sections of the AVR for high speed
-# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
-# at the end, this will be done automatically to create a 32-bit value in your
-# source code.
-#
-# If no clock division is performed on the input clock inside the AVR (via the
-# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
-F_USB = $(F_CPU)
-
-# Interrupt driven control endpoint task(+60)
-OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
-
-
-# Boot Section Size in *bytes*
-# Teensy halfKay 512
-# Teensy++ halfKay 1024
-# Atmel DFU loader 4096
-# LUFA bootloader 4096
-# USBaspLoader 2048
-BOOTLOADER=caterina
+# Bootloader selection
+# Teensy halfkay
+# Pro Micro caterina
+# Atmel DFU atmel-dfu
+# LUFA DFU lufa-dfu
+# QMK DFU qmk-dfu
+# ATmega32A bootloadHID
+# ATmega328P USBasp
+BOOTLOADER = caterina
# Build Options
# comment out to disable the options.
@@ -64,4 +27,3 @@ AUDIO_ENABLE = no
UNICODE_ENABLE = no # Unicode
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
TAP_DANCE_ENABLE = no
-