feat: Add WPM calculator and display widget
This commit is contained in:
parent
c0cab57c2d
commit
a4aaa73f06
20 changed files with 306 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include <zmk/display/widgets/output_status.h>
|
||||
#include <zmk/display/widgets/battery_status.h>
|
||||
#include <zmk/display/widgets/layer_status.h>
|
||||
#include <zmk/display/widgets/wpm_status.h>
|
||||
#include <zmk/display/status_screen.h>
|
||||
|
||||
#include <logging/log.h>
|
||||
|
|
@ -24,6 +25,10 @@ static struct zmk_widget_output_status output_status_widget;
|
|||
static struct zmk_widget_layer_status layer_status_widget;
|
||||
#endif
|
||||
|
||||
#if IS_ENABLED(CONFIG_ZMK_WIDGET_WPM_STATUS)
|
||||
static struct zmk_widget_wpm_status wpm_status_widget;
|
||||
#endif
|
||||
|
||||
lv_obj_t *zmk_display_status_screen() {
|
||||
lv_obj_t *screen;
|
||||
|
||||
|
|
@ -47,5 +52,10 @@ lv_obj_t *zmk_display_status_screen() {
|
|||
0, 0);
|
||||
#endif
|
||||
|
||||
#if IS_ENABLED(CONFIG_ZMK_WIDGET_WPM_STATUS)
|
||||
zmk_widget_wpm_status_init(&wpm_status_widget, screen);
|
||||
lv_obj_align(zmk_widget_wpm_status_obj(&wpm_status_widget), NULL, LV_ALIGN_IN_BOTTOM_RIGHT, -12,
|
||||
0);
|
||||
#endif
|
||||
return screen;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue