Skip to content

Commit

Permalink
[Keyboard] Update Kay65 LED state (qmk#18895)
Browse files Browse the repository at this point in the history
  • Loading branch information
mechlovin authored and ChrisChrisLoLo committed Sep 2, 2023
1 parent 3d3d40c commit 570cf78
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions keyboards/mechlovin/kay65/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//#define LED_SCROLL_LOCK_PIN B2
//#define LED_COMPOSE_PIN B3
//#define LED_KANA_PIN B4
#define LED_PIN_ON_STATE 0

//#define BACKLIGHT_PIN B7
//#define BACKLIGHT_LEVELS 3
Expand Down
4 changes: 2 additions & 2 deletions keyboards/mechlovin/kay65/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case LOGO_LED_ON:
if (record->event.pressed) {
writePinHigh(D7);
writePinLow(D7);
}
break;
case LOGO_LED_OFF:
if (record->event.pressed) {
writePinLow(D7);
writePinHigh(D7);
}
break;
}
Expand Down
4 changes: 2 additions & 2 deletions keyboards/mechlovin/kay65/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case LOGO_LED_ON:
if (record->event.pressed) {
writePinHigh(D7);
writePinLow(D7);
}
break;
case LOGO_LED_OFF:
if (record->event.pressed) {
writePinLow(D7);
writePinHigh(D7);
}
break;
}
Expand Down

0 comments on commit 570cf78

Please sign in to comment.