[Keyboard] wilba.tech PCB refactoring (#6982)
* Cleanup * Refactor VIA rules.mk * WT mono backlight refactor, VIA support * Added WT75-C * Fixed compile error * Cleanup rules.mk * Review changes * Review changes
This commit is contained in:
parent
22aa2ce6b2
commit
e47ab6a575
48 changed files with 1132 additions and 1250 deletions
|
@ -19,6 +19,36 @@
|
|||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "quantum/color.h"
|
||||
|
||||
typedef struct PACKED
|
||||
{
|
||||
uint8_t h;
|
||||
uint8_t s;
|
||||
} HS;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
bool disable_when_usb_suspended:1; // |
|
||||
bool __pad1:1; // |
|
||||
bool __pad2:1; // |
|
||||
bool __pad3:1; // |
|
||||
bool __pad4:1; // |
|
||||
bool __pad5:1; // |
|
||||
bool __pad6:1; // |
|
||||
bool __pad7:1; // 1 byte
|
||||
uint8_t disable_after_timeout; // 1 byte
|
||||
uint8_t brightness; // 1 byte
|
||||
uint8_t effect; // 1 byte
|
||||
uint8_t effect_speed; // 1 byte
|
||||
HS color_1; // 2 bytes (Indicator Color for Xeno)
|
||||
} backlight_config; // = 7 bytes
|
||||
|
||||
void backlight_config_load(void);
|
||||
void backlight_config_save(void);
|
||||
void backlight_config_set_value( uint8_t *data );
|
||||
void backlight_config_get_value( uint8_t *data );
|
||||
|
||||
void backlight_init_drivers(void);
|
||||
|
||||
void backlight_timer_init(void);
|
||||
|
@ -26,8 +56,24 @@ void backlight_timer_enable(void);
|
|||
void backlight_timer_disable(void);
|
||||
|
||||
void backlight_set_suspend_state(bool state);
|
||||
void backlight_set_indicator_state(uint8_t state);
|
||||
|
||||
// This should not be called from an interrupt
|
||||
// (eg. from a timer interrupt).
|
||||
// Call this while idle (in between matrix scans).
|
||||
// If the buffer is dirty, it will update the driver with the buffer.
|
||||
void backlight_update_pwm_buffers(void);
|
||||
|
||||
void backlight_set_brightness_all( uint8_t value );
|
||||
// Handle backlight specific keycodes
|
||||
bool process_record_backlight(uint16_t keycode, keyrecord_t *record);
|
||||
|
||||
void backlight_set_key_hit(uint8_t row, uint8_t col);
|
||||
|
||||
void backlight_effect_increase(void);
|
||||
void backlight_effect_decrease(void);
|
||||
void backlight_effect_speed_increase(void);
|
||||
void backlight_effect_speed_decrease(void);
|
||||
|
||||
void backlight_brightness_increase(void);
|
||||
void backlight_brightness_decrease(void);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue