From ec0caa569b356f186e87c13e50550ca1b807dde6 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sun, 4 Sep 2022 18:16:20 +0200 Subject: eve support when i2s is running --- fw/fe310/eos/eve/widget/togglew.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'fw/fe310/eos/eve/widget/togglew.h') diff --git a/fw/fe310/eos/eve/widget/togglew.h b/fw/fe310/eos/eve/widget/togglew.h index 26ff77c..aa5485d 100644 --- a/fw/fe310/eos/eve/widget/togglew.h +++ b/fw/fe310/eos/eve/widget/togglew.h @@ -1,5 +1,7 @@ #include +#define EVE_TOGGLEW_MARGIN 50 + struct EVEWidgetSpec; typedef struct EVEToggleWidget { @@ -12,6 +14,7 @@ typedef struct EVEToggleWidget { typedef struct EVEToggleSpec { EVEFont *font; char *labels; + uint8_t state; } EVEToggleSpec; void eve_togglew_init(EVEToggleWidget *widget, EVERect *g, EVEPage *page, EVEFont *font, char *labels); @@ -19,3 +22,7 @@ void eve_togglew_init(EVEToggleWidget *widget, EVERect *g, EVEPage *page, EVEFon int eve_togglew_create(EVEWidget *_widget, struct EVEWidgetSpec *spec, EVEPage *page); uint8_t eve_togglew_draw(EVEWidget *_widget, uint8_t tag0); int eve_togglew_touch(EVEWidget *_widget, EVETouch *touch, uint16_t evt); + +void eve_togglew_set(EVEToggleWidget *widget); +void eve_togglew_clr(EVEToggleWidget *widget); +uint8_t eve_togglew_get(EVEToggleWidget *widget); \ No newline at end of file -- cgit v1.2.3