diff options
author | QMK Bot <hello@qmk.fm> | 2021-02-28 05:50:33 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2021-02-28 05:50:33 +0000 |
commit | 55d85b89c00cbe86222f43b5aacaf4dd49f99fb4 (patch) | |
tree | dce849f6ad9b2dd5806d4fe83df74c847f9bb2a8 /keyboards | |
parent | 43bd843f375c343ba24b1b70e4861cb9541ff664 (diff) | |
parent | 4a7a9e9951c2749d908e7a34c91f72a5fdb4ad39 (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards')
-rw-r--r-- | keyboards/cannonkeys/satisfaction75/led.c | 15 | ||||
-rw-r--r-- | keyboards/cannonkeys/satisfaction75/rules.mk | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/keyboards/cannonkeys/satisfaction75/led.c b/keyboards/cannonkeys/satisfaction75/led.c index 18ef06acf8..39ff4d784d 100644 --- a/keyboards/cannonkeys/satisfaction75/led.c +++ b/keyboards/cannonkeys/satisfaction75/led.c @@ -80,6 +80,21 @@ void backlight_init_ports(void) { } } +void suspend_power_down_user(void) { + backlight_set(0); +} +void suspend_wakeup_init_user(void) { + if(kb_backlight_config.enable){ + if(kb_backlight_config.breathing){ + breathing_enable(); + } else{ + backlight_set(kb_backlight_config.level); + } + } else { + backlight_set(0); + } +} + void backlight_set(uint8_t level) { uint32_t duty = (uint32_t)(cie_lightness(0xFFFF * (uint32_t) level / BACKLIGHT_LEVELS)); if (level == 0) { diff --git a/keyboards/cannonkeys/satisfaction75/rules.mk b/keyboards/cannonkeys/satisfaction75/rules.mk index e0f646ccc3..e3abea5463 100644 --- a/keyboards/cannonkeys/satisfaction75/rules.mk +++ b/keyboards/cannonkeys/satisfaction75/rules.mk @@ -15,7 +15,7 @@ MOUSEKEY_ENABLE = yes # Mouse keys EXTRAKEY_ENABLE = yes # Audio control and System control CONSOLE_ENABLE = yes # Console for debug COMMAND_ENABLE = yes # Commands for debug and configuration -SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend +SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend NKRO_ENABLE = yes # USB Nkey Rollover CUSTOM_MATRIX = no # Custom matrix file ENCODER_ENABLE = yes |