Skip to content

Commit

Permalink
Tidy up LCD_ENABLE/visualizer references (qmk#14855)
Browse files Browse the repository at this point in the history
* Tidy up LCD_ENABLE/visualizer references

* Fix up my (333fred) ergodox keymap with new LCD driver

Co-authored-by: Fredric Silberberg <[email protected]>
  • Loading branch information
zvecr and 333fred authored Oct 20, 2021
1 parent ea9e319 commit e765f6e
Show file tree
Hide file tree
Showing 12 changed files with 55 additions and 357 deletions.
4 changes: 0 additions & 4 deletions common_features.mk
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,6 @@ ifneq ($(strip $(VARIABLE_TRACE)),no)
endif
endif

ifeq ($(strip $(LCD_ENABLE)), yes)
CIE1931_CURVE := yes
endif

VALID_BACKLIGHT_TYPES := pwm timer software custom

BACKLIGHT_ENABLE ?= no
Expand Down
40 changes: 40 additions & 0 deletions layouts/community/ergodox/333fred/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,3 +272,43 @@ void matrix_scan_user(void) {
ergodox_led_all_on();
}

#ifdef ST7565_ENABLE

void st7565_task_user(void) {
// The colors will need to be ported over to the quantum painter API when
// https://github.com/qmk/qmk_firmware/pull/10174 is merged.

st7565_clear();
switch (get_highest_layer(layer_state)) {
case BASE:
//state->target_lcd_color = LCD_COLOR(84, saturation, 0xFF);
st7565_write_P(PSTR("Default\n"), false);
break;
case CODEFLOW:
//state->target_lcd_color = LCD_COLOR(216, 90, 0xFF);
st7565_write_P(PSTR("Code\n"), false);
break;
case SYMB:
//state->target_lcd_color = LCD_COLOR(168, saturation, 0xFF);
st7565_write_P(PSTR("Symbol\n"), false);
break;
case MDIA:
//state->target_lcd_color = LCD_COLOR(0, saturation, 0xFF);
st7565_write_P(PSTR("Media\n"), false);
break;
case VIM:
//state->target_lcd_color = LCD_COLOR(140, 100, 60);
st7565_write_P(PSTR("Movement\n"), false);
break;
case GAME:
//state->target_lcd_color = LCD_COLOR(0, 255, 60);
st7565_write_P(PSTR("Game\n"), false);
break;
case GAME_ARROW:
//state->target_lcd_color = LCD_COLOR(0, 255, 60);
st7565_write_P(PSTR("Game Arrow\n"), false);
break;
}
}

#endif
3 changes: 0 additions & 3 deletions layouts/community/ergodox/333fred/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
LCD_BACKLIGHT_ENABLE = yes
LCD_ENABLE = yes
BACKLIGHT_ENABLE = yes
KEY_LOCK_ENABLE = yes
CONSOLE_ENABLE = no
39 changes: 0 additions & 39 deletions layouts/community/ergodox/333fred/visualizer.c

This file was deleted.

34 changes: 0 additions & 34 deletions layouts/community/ergodox/adnw_p_u_q/visualizer.c

This file was deleted.

35 changes: 15 additions & 20 deletions layouts/community/ergodox/belak/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ enum belak_keycodes {
E_TSET,
};

inline void tap(uint16_t keycode) {
register_code(keycode);
unregister_code(keycode);
};

// TODO: Add LED support to the tap dance by using the advanced macro
#define LTOGGLE TD(TD_LAYER_TOGGLE)

Expand Down Expand Up @@ -273,37 +268,37 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case E_SHRUG: // ¯\_(ツ)_/¯
if (record->event.pressed) {
process_unicode((0x00AF|QK_UNICODE), record); // Hand
tap(KC_BSLS); // Arm
tap_code16(KC_BSLS); // Arm
register_code(KC_RSFT);
tap(KC_UNDS); // Arm
tap(KC_LPRN); // Head
tap_code16(KC_UNDS); // Arm
tap_code16(KC_LPRN); // Head
unregister_code(KC_RSFT);
process_unicode((0x30C4|QK_UNICODE), record); // Face
register_code(KC_RSFT);
tap(KC_RPRN); // Head
tap(KC_UNDS); // Arm
tap_code16(KC_RPRN); // Head
tap_code16(KC_UNDS); // Arm
unregister_code(KC_RSFT);
tap(KC_SLSH); // Arm
tap_code16(KC_SLSH); // Arm
process_unicode((0x00AF|QK_UNICODE), record); // Hand
}
return false;
break;
case E_TFLIP: // (╯°□°)╯ ︵ ┻━┻
if (record->event.pressed) {
register_code(KC_RSFT);
tap(KC_9);
tap_code16(KC_9);
unregister_code(KC_RSFT);
process_unicode((0x256F|QK_UNICODE), record); // Arm
process_unicode((0x00B0|QK_UNICODE), record); // Eye
process_unicode((0x25A1|QK_UNICODE), record); // Mouth
process_unicode((0x00B0|QK_UNICODE), record); // Eye
register_code(KC_RSFT);
tap(KC_0);
tap_code16(KC_0);
unregister_code(KC_RSFT);
process_unicode((0x256F|QK_UNICODE), record); // Arm
tap(KC_SPC);
tap_code16(KC_SPC);
process_unicode((0x0361|QK_UNICODE), record); // Flippy
tap(KC_SPC);
tap_code16(KC_SPC);
process_unicode((0x253B|QK_UNICODE), record); // Table
process_unicode((0x2501|QK_UNICODE), record); // Table
process_unicode((0x253B|QK_UNICODE), record); // Table
Expand All @@ -316,18 +311,18 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
process_unicode((0x2500|QK_UNICODE), record); // Table
process_unicode((0x2500|QK_UNICODE), record); // Table
process_unicode((0x252C|QK_UNICODE), record); // Table
tap(KC_SPC);
tap_code16(KC_SPC);
process_unicode((0x30CE|QK_UNICODE), record); // Arm
register_code(KC_RSFT);
tap(KC_9);
tap_code16(KC_9);
unregister_code(KC_RSFT);
tap(KC_SPC);
tap_code16(KC_SPC);
process_unicode((0x309C|QK_UNICODE), record); // Eye
tap(KC_MINS);
tap_code16(KC_MINS);
process_unicode((0x309C|QK_UNICODE), record); // Eye
process_unicode((0x30CE|QK_UNICODE), record); // Arm
register_code(KC_RSFT);
tap(KC_0);
tap_code16(KC_0);
unregister_code(KC_RSFT);
}
return false;
Expand Down
49 changes: 0 additions & 49 deletions layouts/community/ergodox/belak/visualizer.c

This file was deleted.

62 changes: 0 additions & 62 deletions layouts/community/ergodox/choromanski/visualizer.c

This file was deleted.

Loading

0 comments on commit e765f6e

Please sign in to comment.