diff options
author | Sergey Vlasov <[email protected]> | 2021-10-10 19:01:29 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-10-10 17:01:29 +0100 |
commit | 2d3bd7cfcfd3418507a932f3aca7b7c77df07caa (patch) | |
tree | 345d092f6d65b507c590d2d75099f3b93397a54a /keyboards/cannonkeys/satisfaction75/satisfaction75.h | |
parent | 0ea72af8b79c9084105f467f764161a7b53d9612 (diff) | |
download | qmk_firmware-2d3bd7cfcfd3418507a932f3aca7b7c77df07caa.tar.gz qmk_firmware-2d3bd7cfcfd3418507a932f3aca7b7c77df07caa.zip |
Fix OLED timeout on satisfaction75 after migration from QWIIC (#14780)
The custom OLED_OFF mode implemented on satisfaction75 is incompatible
with the OLED_TIMEOUT feature (the OLED_TIMEOUT code assumes that any
key or encoder action should turn the OLED display on, and does not
provide any way to disable that behavior). To keep the OLED_OFF mode
functioning as before while still having a working OLED idle timeout, a
custom implementation of the OLED idle timeout code is added.
Diffstat (limited to 'keyboards/cannonkeys/satisfaction75/satisfaction75.h')
-rw-r--r-- | keyboards/cannonkeys/satisfaction75/satisfaction75.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/keyboards/cannonkeys/satisfaction75/satisfaction75.h b/keyboards/cannonkeys/satisfaction75/satisfaction75.h index 9d20dd9c93..c6dbc31f1b 100644 --- a/keyboards/cannonkeys/satisfaction75/satisfaction75.h +++ b/keyboards/cannonkeys/satisfaction75/satisfaction75.h @@ -72,6 +72,9 @@ extern uint8_t layer; // OLED Behavior extern uint8_t oled_mode; +extern bool oled_repaint_requested; +extern bool oled_wakeup_requested; +extern uint32_t oled_sleep_timer; // Encoder Behavior extern uint8_t encoder_value; @@ -107,6 +110,10 @@ void set_custom_encoder_config(uint8_t encoder_idx, uint8_t behavior, uint16_t n void update_time_config(int8_t increment); +void oled_request_wakeup(void); +void oled_request_repaint(void); +bool oled_task_needs_to_repaint(void); + void backlight_init_ports(void); void backlight_set(uint8_t level); bool is_breathing(void); |