diff options
Diffstat (limited to 'app/include')
-rw-r--r-- | app/include/zmk/events/battery-state-changed.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/include/zmk/events/battery-state-changed.h b/app/include/zmk/events/battery-state-changed.h new file mode 100644 index 0000000..a590170 --- /dev/null +++ b/app/include/zmk/events/battery-state-changed.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2020 The ZMK Contributors + * + * SPDX-License-Identifier: MIT + */ + +#pragma once + +#include <zephyr.h> +#include <zmk/event-manager.h> + +struct battery_state_changed { + struct zmk_event_header header; + // TODO: Other battery channels + u8_t state_of_charge; +}; + +ZMK_EVENT_DECLARE(battery_state_changed);
\ No newline at end of file |