mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-20 04:55:20 -05:00
refactor(battery): Fire event on battery event.
This commit is contained in:
18
app/include/zmk/events/battery-state-changed.h
Normal file
18
app/include/zmk/events/battery-state-changed.h
Normal file
@@ -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);
|
||||
Reference in New Issue
Block a user