diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-08-31 10:18:19 -0400 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-12-02 16:04:56 -0500 |
commit | b3f3362b506d628c53cc610801bc3109965659ea (patch) | |
tree | 847013359808f4e0bc7c0da17d6750eb998b143c /app/src/endpoints.c | |
parent | d5ea4269757e4b6e1d4a4185a34f359210eac310 (diff) |
feat(display): Initial widget/status screen work.
* Battery and output status widgets
* Built in status screen combining them.
* Ability to define a custom status screen factory
function.
Diffstat (limited to 'app/src/endpoints.c')
-rw-r--r-- | app/src/endpoints.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/endpoints.c b/app/src/endpoints.c index 406d23b..4367dd2 100644 --- a/app/src/endpoints.c +++ b/app/src/endpoints.c @@ -47,6 +47,8 @@ int zmk_endpoints_select(enum zmk_endpoint endpoint) { return 0; } +enum zmk_endpoint zmk_endpoints_selected() { return current_endpoint; } + int zmk_endpoints_toggle() { enum zmk_endpoint new_endpoint = (preferred_endpoint == ZMK_ENDPOINT_USB) ? ZMK_ENDPOINT_BLE : ZMK_ENDPOINT_USB; |