1
0
Fork 0

[Keyboard] Use GPIO macros for E6 LED in Planck and Preonic default keymaps (#7098)

This commit is contained in:
fauxpark 2019-10-21 16:38:22 +11:00 committed by noroadsleft
parent 1533483bb2
commit 97b8ade1aa
5 changed files with 11 additions and 11 deletions

View file

@ -209,12 +209,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
backlight_step(); backlight_step();
#endif #endif
#ifdef KEYBOARD_planck_rev5 #ifdef KEYBOARD_planck_rev5
PORTE &= ~(1<<6); writePinLow(E6);
#endif #endif
} else { } else {
unregister_code(KC_RSFT); unregister_code(KC_RSFT);
#ifdef KEYBOARD_planck_rev5 #ifdef KEYBOARD_planck_rev5
PORTE |= (1<<6); writePinHigh(E6);
#endif #endif
} }
return false; return false;

View file

@ -14,8 +14,8 @@ __attribute__ ((weak))
void matrix_init_kb(void) { void matrix_init_kb(void) {
// Turn status LED on // Turn status LED on
#ifdef __AVR__ #ifdef __AVR__
DDRE |= (1<<6); setPinOutput(E6);
PORTE |= (1<<6); writePinHigh(E6);
#endif #endif
matrix_init_user(); matrix_init_user();

View file

@ -213,12 +213,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
backlight_step(); backlight_step();
#endif #endif
#ifdef __AVR__ #ifdef __AVR__
PORTE &= ~(1<<6); writePinLow(E6);
#endif #endif
} else { } else {
unregister_code(KC_RSFT); unregister_code(KC_RSFT);
#ifdef __AVR__ #ifdef __AVR__
PORTE |= (1<<6); writePinHigh(E6);
#endif #endif
} }
return false; return false;

View file

@ -18,8 +18,8 @@
void matrix_init_kb(void) { void matrix_init_kb(void) {
// Turn status LED on // Turn status LED on
DDRE |= (1<<6); setPinOutput(E6);
PORTE |= (1<<6); writePinHigh(E6);
matrix_init_user(); matrix_init_user();
}; };

View file

@ -18,8 +18,8 @@
void matrix_init_kb(void) { void matrix_init_kb(void) {
// Turn status LED on // Turn status LED on
DDRE |= (1<<6); setPinOutput(E6);
PORTE |= (1<<6); writePinHigh(E6);
matrix_init_user(); matrix_init_user();
}; };