Backlight abstraction and other changes (#439)
* redoes matrix pins, abstracts backlight code for B5,6,7 * slimming down keyboard stuff, backlight breathing implemented * don't call backlight init when no pin * cleans up user/kb/quantum calls, keyboard files * fix pvc atomic * replaces CHANNEL with correct var in breathing * removes .hexs, updates readmes, updates template * cleans-up clueboards, readmes to lowercase * updates readme
This commit is contained in:
parent
ba116ceb49
commit
13bb6b4b7f
239 changed files with 1146 additions and 139888 deletions
|
@ -27,6 +27,10 @@
|
|||
#include <util/delay.h>
|
||||
#include "bootloader.h"
|
||||
#include "timer.h"
|
||||
#include "config_common.h"
|
||||
#include <avr/interrupt.h>
|
||||
#include "led.h"
|
||||
#include "action_util.h"
|
||||
|
||||
extern uint32_t default_layer_state;
|
||||
|
||||
|
@ -74,6 +78,8 @@ void update_tri_layer(uint8_t layer1, uint8_t layer2, uint8_t layer3);
|
|||
|
||||
void matrix_init_kb(void);
|
||||
void matrix_scan_kb(void);
|
||||
void matrix_init_user(void);
|
||||
void matrix_scan_user(void);
|
||||
bool process_action_kb(keyrecord_t *record);
|
||||
bool process_record_kb(uint16_t keycode, keyrecord_t *record);
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record);
|
||||
|
@ -89,4 +95,28 @@ void audio_on_user(void);
|
|||
void music_on_user(void);
|
||||
void music_scale_user(void);
|
||||
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
void backlight_init_ports(void);
|
||||
|
||||
#ifdef BACKLIGHT_BREATHING
|
||||
void breathing_enable(void);
|
||||
void breathing_pulse(void);
|
||||
void breathing_disable(void);
|
||||
void breathing_self_disable(void);
|
||||
void breathing_toggle(void);
|
||||
bool is_breathing(void);
|
||||
|
||||
void breathing_defaults(void);
|
||||
void breathing_intensity_default(void);
|
||||
void breathing_speed_default(void);
|
||||
void breathing_speed_set(uint8_t value);
|
||||
void breathing_speed_inc(uint8_t value);
|
||||
void breathing_speed_dec(uint8_t value);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
void led_set_user(uint8_t usb_led);
|
||||
void led_set_kb(uint8_t usb_led);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue