diff options
author | Joel Challis <git@zvecr.com> | 2020-01-13 01:30:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-13 01:30:56 +0000 |
commit | b89e35bdd33b3953711de8b0be64c76b64e9701b (patch) | |
tree | a597dafbaf6dfe50f94a70eade9954d78b84acd6 /quantum/backlight/backlight.h | |
parent | 2ce3025be2fd28c7ea3f2fd33c7aba7277ff668b (diff) |
Relocate common backlight functionally (#7273)
Diffstat (limited to 'quantum/backlight/backlight.h')
-rw-r--r-- | quantum/backlight/backlight.h | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/quantum/backlight/backlight.h b/quantum/backlight/backlight.h index 1e581055db..9f0a5e81d7 100644 --- a/quantum/backlight/backlight.h +++ b/quantum/backlight/backlight.h @@ -41,22 +41,39 @@ typedef union { } backlight_config_t; void backlight_init(void); -void backlight_increase(void); -void backlight_decrease(void); void backlight_toggle(void); void backlight_enable(void); void backlight_disable(void); bool is_backlight_enabled(void); void backlight_step(void); -void backlight_set(uint8_t level); +void backlight_increase(void); +void backlight_decrease(void); void backlight_level(uint8_t level); uint8_t get_backlight_level(void); +// implementation specific +void backlight_init_ports(void); +void backlight_set(uint8_t level); +void backlight_task(void); + #ifdef BACKLIGHT_BREATHING + void backlight_toggle_breathing(void); void backlight_enable_breathing(void); void backlight_disable_breathing(void); bool is_backlight_breathing(void); + +void breathing_period_set(uint8_t value); +uint8_t get_breathing_period(void); +void breathing_period_default(void); +void breathing_period_inc(void); +void breathing_period_dec(void); + +// implementation specific void breathing_enable(void); void breathing_disable(void); +void breathing_toggle(void); +bool is_breathing(void); +void breathing_pulse(void); +void breathing_task(void); #endif |