forked from kofal.net/zmk
feat(backlight): add command to cycle brightness
This commit is contained in:
committed by
Pete Johanson
parent
2c0fe3934d
commit
13a4515300
@@ -9,11 +9,13 @@
|
||||
#define BL_TOG_CMD 2
|
||||
#define BL_INC_CMD 3
|
||||
#define BL_DEC_CMD 4
|
||||
#define BL_SET_CMD 5
|
||||
#define BL_CYCLE_CMD 5
|
||||
#define BL_SET_CMD 6
|
||||
|
||||
#define BL_ON BL_ON_CMD 0
|
||||
#define BL_OFF BL_OFF_CMD 0
|
||||
#define BL_TOG BL_TOG_CMD 0
|
||||
#define BL_INC BL_INC_CMD 0
|
||||
#define BL_DEC BL_DEC_CMD 0
|
||||
#define BL_CYCLE BL_CYCLE_CMD 0
|
||||
#define BL_SET BL_SET_CMD
|
||||
|
||||
@@ -14,3 +14,4 @@ bool zmk_backlight_is_on();
|
||||
int zmk_backlight_set_brt(uint8_t brightness);
|
||||
uint8_t zmk_backlight_get_brt();
|
||||
uint8_t zmk_backlight_calc_brt(int direction);
|
||||
uint8_t zmk_backlight_calc_brt_cycle();
|
||||
|
||||
Reference in New Issue
Block a user