Pete Johanson
4 years ago
4 changed files with 42 additions and 1 deletions
@ -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); |
Loading…
Reference in new issue