Skip to content

Commit

Permalink
OLED_ENABLE fix & dynamic key override exclusion (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
lesshonor authored Jun 27, 2022
1 parent 1c12919 commit 74a2c9a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 6 additions & 1 deletion keyboards/mechwild/mercutio/keymaps/vial/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define VIAL_KEYBOARD_UID {0xAA, 0xF4, 0xE4, 0x5D, 0xDA, 0x2E, 0x52, 0x2F}
#define VIAL_UNLOCK_COMBO_ROWS { 1, 5 }
#define VIAL_UNLOCK_COMBO_COLS { 0, 3 }
#define VIAL_ENCODER_DEFAULT { KC_VOLD, KC_VOLU, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS }
#define VIAL_ENCODER_DEFAULT { KC_VOLD, KC_VOLU, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS }

/* Space-saving measures */
#define LAYER_STATE_8BIT
#undef LOCKING_SUPPORT_ENABLE
#undef LOCKING_RESYNC_ENABLE
7 changes: 4 additions & 3 deletions keyboards/mechwild/mercutio/keymaps/vial/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS )
};

#ifdef OLED_DRIVER_ENABLE
#ifdef OLED_ENABLE
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
return OLED_ROTATION_180; // flips the display 180 degrees if offhand
}
Expand All @@ -61,7 +61,8 @@ static void render_name(void) {
oled_write_P(mercutio_name, false);
}

void oled_task_user(void) {
bool oled_task_user(void) {
render_name();
return false;
}
#endif
#endif
3 changes: 2 additions & 1 deletion keyboards/mechwild/mercutio/keymaps/vial/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ VIAL_ENABLE = yes
VIAL_ENCODERS_ENABLE = yes

LTO_ENABLE = yes
QMK_SETTINGS = no
KEY_OVERRIDE_ENABLE = no
MAGIC_ENABLE = no

0 comments on commit 74a2c9a

Please sign in to comment.