New behavior for ext power control
This commit is contained in:
parent
d0c6310434
commit
b5e1c8a7ad
7 changed files with 98 additions and 6 deletions
16
app/include/dt-bindings/zmk/ext_power.h
Normal file
16
app/include/dt-bindings/zmk/ext_power.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright (c) 2020 The ZMK Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#define EXT_POWER_OFF_CMD 0
|
||||
#define EXT_POWER_ON_CMD 1
|
||||
|
||||
/*
|
||||
* Note: Some future commands might include additional parameters, so we
|
||||
* defines these aliases up front.
|
||||
*/
|
||||
|
||||
#define EP_ON EXT_POWER_ON_CMD 0
|
||||
#define EP_OFF EXT_POWER_OFF_CMD 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue