diff options
| -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 18ef06acf..39ff4d784 100644 --- a/keyboards/cannonkeys/satisfaction75/led.c +++ b/keyboards/cannonkeys/satisfaction75/led.c | |||
| @@ -80,6 +80,21 @@ void backlight_init_ports(void) { | |||
| 80 | } | 80 | } |
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | void suspend_power_down_user(void) { | ||
| 84 | backlight_set(0); | ||
| 85 | } | ||
| 86 | void suspend_wakeup_init_user(void) { | ||
| 87 | if(kb_backlight_config.enable){ | ||
| 88 | if(kb_backlight_config.breathing){ | ||
| 89 | breathing_enable(); | ||
| 90 | } else{ | ||
| 91 | backlight_set(kb_backlight_config.level); | ||
| 92 | } | ||
| 93 | } else { | ||
| 94 | backlight_set(0); | ||
| 95 | } | ||
| 96 | } | ||
| 97 | |||
| 83 | void backlight_set(uint8_t level) { | 98 | void backlight_set(uint8_t level) { |
| 84 | uint32_t duty = (uint32_t)(cie_lightness(0xFFFF * (uint32_t) level / BACKLIGHT_LEVELS)); | 99 | uint32_t duty = (uint32_t)(cie_lightness(0xFFFF * (uint32_t) level / BACKLIGHT_LEVELS)); |
| 85 | if (level == 0) { | 100 | if (level == 0) { |
diff --git a/keyboards/cannonkeys/satisfaction75/rules.mk b/keyboards/cannonkeys/satisfaction75/rules.mk index e0f646ccc..e3abea546 100644 --- a/keyboards/cannonkeys/satisfaction75/rules.mk +++ b/keyboards/cannonkeys/satisfaction75/rules.mk | |||
| @@ -15,7 +15,7 @@ MOUSEKEY_ENABLE = yes # Mouse keys | |||
| 15 | EXTRAKEY_ENABLE = yes # Audio control and System control | 15 | EXTRAKEY_ENABLE = yes # Audio control and System control |
| 16 | CONSOLE_ENABLE = yes # Console for debug | 16 | CONSOLE_ENABLE = yes # Console for debug |
| 17 | COMMAND_ENABLE = yes # Commands for debug and configuration | 17 | COMMAND_ENABLE = yes # Commands for debug and configuration |
| 18 | SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | 18 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 19 | NKRO_ENABLE = yes # USB Nkey Rollover | 19 | NKRO_ENABLE = yes # USB Nkey Rollover |
| 20 | CUSTOM_MATRIX = no # Custom matrix file | 20 | CUSTOM_MATRIX = no # Custom matrix file |
| 21 | ENCODER_ENABLE = yes | 21 | ENCODER_ENABLE = yes |
