Skip to content

Commit

Permalink
Get rid of USB_LED_KANA and USB_LED_COMPOSE (qmk#21366)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored and jashort committed Nov 20, 2023
1 parent bc19c02 commit 8817fdc
Show file tree
Hide file tree
Showing 67 changed files with 26 additions and 1,211 deletions.
31 changes: 0 additions & 31 deletions keyboards/1upkeyboards/1up60rgb/keymaps/raffle/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,42 +71,11 @@ layer_state_t layer_state_set_user(layer_state_t state) {
return update_tri_layer_state(state, _raise, _rgb, _adjust);
}


// scan matrix
void matrix_scan_user(void) {
}

// support for standard mod state keys (caps lock, scroll lock, etc.)
void led_set_user(uint8_t usb_led) {

if (usb_led & (1 << USB_LED_NUM_LOCK)) {

} else {

}

if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
DDRB |= (1 << 2); PORTB &= ~(1 << 2);
} else {
DDRB &= ~(1 << 2); PORTB &= ~(1 << 2);
}

if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {

} else {

}

if (usb_led & (1 << USB_LED_COMPOSE)) {

} else {

}

if (usb_led & (1 << USB_LED_KANA)) {

} else {

}

}
40 changes: 0 additions & 40 deletions keyboards/40percentclub/gherkin/keymaps/mjt/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,6 @@ void music_scale_user(void)

#endif

void matrix_scan_user(void) {
}

//Tap Dance Definitions
tap_dance_action_t tap_dance_actions[] = {
//Tap once for Esc, twice for Caps Lock
Expand All @@ -211,40 +208,3 @@ tap_dance_action_t tap_dance_actions[] = {
[TD_A_TAB] = ACTION_TAP_DANCE_DOUBLE(KC_A, KC_TAB),
[TD_Q_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_Q, KC_ESC)
};

// don't know what this is doing...
/*
void led_set_user(uint8_t usb_led) {
if (usb_led & (1 << USB_LED_NUM_LOCK)) {
DDRD |= (1 << 5); PORTD &= ~(1 << 5);
} else {
DDRD &= ~(1 << 5); PORTD &= ~(1 << 5);
}
if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
DDRB |= (1 << 0); PORTB &= ~(1 << 0);
} else {
DDRB &= ~(1 << 0); PORTB &= ~(1 << 0);
}
if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
} else {
}
if (usb_led & (1 << USB_LED_COMPOSE)) {
} else {
}
if (usb_led & (1 << USB_LED_KANA)) {
} else {
}
}
*/
16 changes: 0 additions & 16 deletions keyboards/ai03/quasar/keymaps/ai03/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______, KC_BSPC, KC_HOME, KC_PGDN, KC_END
)
};

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
}

void matrix_init_user(void) {

}

void matrix_scan_user(void) {

}

void led_set_user(uint8_t usb_led) {

}
12 changes: 0 additions & 12 deletions keyboards/ai03/soyuz/keymaps/1U/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,3 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
return true;
}

void matrix_init_user(void) {

}

void matrix_scan_user(void) {

}

void led_set_user(uint8_t usb_led) {

}
16 changes: 0 additions & 16 deletions keyboards/blockey/keymaps/eucalyn/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
),

};

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
}

void matrix_init_user(void) {

}

void matrix_scan_user(void) {

}

void led_set_user(uint8_t usb_led) {

}
20 changes: 0 additions & 20 deletions keyboards/converter/numeric_keypad_iie/keymaps/newbold/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, QK_BOOT
),
};

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
}

void keyboard_post_init_user(void) {

}

void matrix_init_user(void) {

}

void matrix_scan_user(void) {

}

void led_set_user(uint8_t usb_led) {

}
21 changes: 12 additions & 9 deletions keyboards/converter/sun_usb/led.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "print.h"
#include "uart.h"

void led_set(uint8_t usb_led)
bool led_update_kb(led_t led_state)
{
uint8_t sun_led = 0;
if (usb_led & (1<<USB_LED_NUM_LOCK)) sun_led |= (1<<0);
if (usb_led & (1<<USB_LED_COMPOSE)) sun_led |= (1<<1);
if (usb_led & (1<<USB_LED_SCROLL_LOCK)) sun_led |= (1<<2);
if (usb_led & (1<<USB_LED_CAPS_LOCK)) sun_led |= (1<<3);
xprintf("LED: %02X\n", usb_led);
bool res = led_update_user(led_state);
if (res) {
uint8_t sun_led = 0;
if (led_state.num_lock) sun_led |= (1<<0);
if (led_state.compose) sun_led |= (1<<1);
if (led_state.scroll_lock) sun_led |= (1<<2);
if (led_state.caps_lock) sun_led |= (1<<3);

uart_write(0x0E);
uart_write(sun_led);
uart_write(0x0E);
uart_write(sun_led);
}
return res;
}
16 changes: 0 additions & 16 deletions keyboards/converter/usb_usb/keymaps/coloneljesus/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,6 @@ const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS] PROGMEM = {
),
};

void matrix_init_user(void) {

}

void matrix_scan_user(void) {

}

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
}

void led_set_user(uint8_t usb_led) {

}

/*
* Keymap samples
*/
Expand Down
9 changes: 0 additions & 9 deletions keyboards/cutie_club/wraith/keymaps/amber/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
)
};


void matrix_init_user(void) {

}

void matrix_scan_user(void) {
// escape LED on layer 1
if (IS_LAYER_ON(1)) {
Expand All @@ -53,7 +48,3 @@ void matrix_scan_user(void) {
writePinHigh(B0);
}
}

void led_set_user(uint8_t usb_led) {

}
26 changes: 0 additions & 26 deletions keyboards/dz60/keymaps/muzfuz/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,37 +26,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};

void led_set_user(uint8_t usb_led) {

if (usb_led & (1 << USB_LED_NUM_LOCK)) {

} else {

}

if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
DDRB |= (1 << 2); PORTB &= ~(1 << 2);
} else {
DDRB &= ~(1 << 2); PORTB &= ~(1 << 2);
}

if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {

} else {

}

if (usb_led & (1 << USB_LED_COMPOSE)) {

} else {

}

if (usb_led & (1 << USB_LED_KANA)) {

} else {

}

}

bool process_record_user(uint16_t keycode, keyrecord_t *record)
Expand Down
12 changes: 0 additions & 12 deletions keyboards/fleuron/keymaps/dollartacos/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,3 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
return true;
}

void matrix_init_user(void) {

}

void matrix_scan_user(void) {

}

void led_set_user(uint8_t usb_led) {

}
8 changes: 0 additions & 8 deletions keyboards/gon/nerdtkl/keymaps/gam3cat/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,6 @@ void matrix_init_user(void) {
#endif
}

void matrix_scan_user(void) {

}

layer_state_t layer_state_set_user(layer_state_t state) {
switch (get_highest_layer(state)) {
case _BL:
Expand All @@ -263,7 +259,3 @@ layer_state_t layer_state_set_user(layer_state_t state) {
}
return state;
}

void led_set_user(uint8_t usb_led) {

}
14 changes: 0 additions & 14 deletions keyboards/hadron/ver3/keymaps/sebaslayout/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
*/
};


void matrix_init_user(void) {
}

void matrix_scan_user(void) {
}

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
}

void led_set_user(uint8_t usb_led) {

}
16 changes: 0 additions & 16 deletions keyboards/handwired/steamvan/keymaps/jmdaly/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, KC_LSFT, KC_B, KC_SPC, KC_C, _______, _______, _______
)
};

void matrix_init_user(void) {

}

void matrix_scan_user(void) {

}

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
}

void led_set_user(uint8_t usb_led) {

}
16 changes: 0 additions & 16 deletions keyboards/ibm/model_m/teensypp/keymaps/iw0rm3r/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_APP, KC_PDOT
),
};

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
}

void matrix_init_user(void) {

}

void matrix_scan_user(void) {

}

void led_set_user(uint8_t usb_led) {

}
4 changes: 0 additions & 4 deletions keyboards/ibm/model_m_122/ibm122m/keymaps/lukaus/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,3 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {

return true;
}

void led_set_user(uint8_t usb_led) {

}
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,3 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
return true;
}

void matrix_init_user(void) {

}

void matrix_scan_user(void) {

}

void led_set_user(uint8_t usb_led) {

}
Loading

0 comments on commit 8817fdc

Please sign in to comment.