Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OLED_ENABLE fix & restoration of QMK_SETTINGS #188

Merged
merged 1 commit into from
Jun 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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