]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/cannonkeys/stm32f072/keyboard.h
Update KBD67 readme so that it mentions the KBD65 PCB (#5143)
[qmk_firmware.git] / keyboards / cannonkeys / stm32f072 / keyboard.h
1 #pragma once
2
3 #include "quantum.h"
4
5 typedef union {
6     uint8_t raw;
7     struct {
8         bool    enable :1;
9         bool    breathing : 1;
10         uint8_t level  :6;
11     };
12 } backlight_config_t;
13
14 // Backlighting
15 extern backlight_config_t kb_backlight_config;
16 extern bool kb_backlight_breathing;
17 void backlight_init_ports(void);
18 void backlight_set(uint8_t level);
19 bool is_breathing(void);
20 void breathing_enable(void);
21 void breathing_disable(void);
22 void load_custom_config(void);
23 void save_backlight_config_to_eeprom(void);