diff options
Diffstat (limited to 'quantum')
| -rw-r--r-- | quantum/quantum.c | 12 | ||||
| -rw-r--r-- | quantum/template/avr/config.h | 2 | ||||
| -rw-r--r-- | quantum/template/avr/rules.mk | 2 |
3 files changed, 11 insertions, 5 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index 31dfa60cd..d98c601d9 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c | |||
| @@ -708,7 +708,7 @@ bool process_record_quantum(keyrecord_t *record) { | |||
| 708 | #if defined(BACKLIGHT_ENABLE) && defined(BACKLIGHT_BREATHING) | 708 | #if defined(BACKLIGHT_ENABLE) && defined(BACKLIGHT_BREATHING) |
| 709 | case BL_BRTG: { | 709 | case BL_BRTG: { |
| 710 | if (record->event.pressed) { | 710 | if (record->event.pressed) { |
| 711 | breathing_toggle(); | 711 | backlight_toggle_breathing(); |
| 712 | } | 712 | } |
| 713 | return false; | 713 | return false; |
| 714 | } | 714 | } |
| @@ -1196,6 +1196,12 @@ void backlight_init_ports(void) | |||
| 1196 | setPinOutput(backlight_pin); | 1196 | setPinOutput(backlight_pin); |
| 1197 | backlight_on(backlight_pin); | 1197 | backlight_on(backlight_pin); |
| 1198 | ) | 1198 | ) |
| 1199 | |||
| 1200 | #ifdef BACKLIGHT_BREATHING | ||
| 1201 | if (is_backlight_breathing()) { | ||
| 1202 | breathing_enable(); | ||
| 1203 | } | ||
| 1204 | #endif | ||
| 1199 | } | 1205 | } |
| 1200 | 1206 | ||
| 1201 | __attribute__ ((weak)) | 1207 | __attribute__ ((weak)) |
| @@ -1500,7 +1506,9 @@ void backlight_init_ports(void) | |||
| 1500 | 1506 | ||
| 1501 | backlight_init(); | 1507 | backlight_init(); |
| 1502 | #ifdef BACKLIGHT_BREATHING | 1508 | #ifdef BACKLIGHT_BREATHING |
| 1503 | breathing_enable(); | 1509 | if (is_backlight_breathing()) { |
| 1510 | breathing_enable(); | ||
| 1511 | } | ||
| 1504 | #endif | 1512 | #endif |
| 1505 | } | 1513 | } |
| 1506 | 1514 | ||
diff --git a/quantum/template/avr/config.h b/quantum/template/avr/config.h index 1e41a2d31..fc65bb597 100644 --- a/quantum/template/avr/config.h +++ b/quantum/template/avr/config.h | |||
| @@ -91,8 +91,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 91 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 91 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
| 92 | //#define MATRIX_HAS_GHOST | 92 | //#define MATRIX_HAS_GHOST |
| 93 | 93 | ||
| 94 | /* number of backlight levels */ | ||
| 95 | |||
| 96 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 94 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
| 97 | #define LOCKING_SUPPORT_ENABLE | 95 | #define LOCKING_SUPPORT_ENABLE |
| 98 | /* Locking resynchronize hack */ | 96 | /* Locking resynchronize hack */ |
diff --git a/quantum/template/avr/rules.mk b/quantum/template/avr/rules.mk index bc370be03..133c9e363 100644 --- a/quantum/template/avr/rules.mk +++ b/quantum/template/avr/rules.mk | |||
| @@ -70,7 +70,7 @@ COMMAND_ENABLE = yes # Commands for debug and configuration | |||
| 70 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 70 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 71 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 71 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 72 | NKRO_ENABLE = no # USB Nkey Rollover | 72 | NKRO_ENABLE = no # USB Nkey Rollover |
| 73 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default | 73 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality |
| 74 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | 74 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow |
| 75 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | 75 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) |
| 76 | UNICODE_ENABLE = no # Unicode | 76 | UNICODE_ENABLE = no # Unicode |
