Finish numberstack code UI

This commit is contained in:
maddiebaka
2026-04-25 15:41:45 -04:00
parent 0a56a1ec1c
commit 160ee1ce2f
3 changed files with 113 additions and 37 deletions
+11 -1
View File
@@ -12,12 +12,22 @@ typedef struct {
ns_btn_cb_t bottom_cb;
} ns_widget_ctx_t; /** Numberstack widget context type */
typedef enum {
STOPPED,
SPINUP,
COATING,
SPINDOWN
} coat_state;
lv_obj_t * build_numberstack(lv_obj_t * parent,
const char * label_text,
lv_obj_t ** label_value,
ns_btn_cb_t top_btn_cb,
ns_btn_cb_t bottom_btn_cb);
ns_btn_cb_t bottom_btn_cb,
uint16_t start_value,
uint16_t stepsize);
void update_rpm_readout(uint16_t rpm);
void build_ui(void);