From 6a4c8a1f11f6a7bd57b0fd618f455bcdecbfe538 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sun, 28 Feb 2021 18:38:37 +0100 Subject: net send will do selected spi dev pause/resume if more is set and netowk is not active --- fw/fe310/eos/app/root.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'fw/fe310/eos/app/root.c') diff --git a/fw/fe310/eos/app/root.c b/fw/fe310/eos/app/root.c index a86b291..43bab11 100644 --- a/fw/fe310/eos/app/root.c +++ b/fw/fe310/eos/app/root.c @@ -46,11 +46,11 @@ static uint8_t kbd_draw(EVEView *v, uint8_t tag0) { return tag0; } -void app_root_init(eve_view_constructor_t home_page) { +void app_screen_init(eve_view_constructor_t home_page) { EVERect g; _app_font_default = &font; - eos_spi_dev_start(EOS_DEV_DISP); + eve_spi_start(); eve_brightness(0x40); @@ -86,11 +86,17 @@ void app_root_init(eve_view_constructor_t home_page) { eve_screen_hide_kbd(&screen); eve_screen_draw(&screen); - eos_spi_dev_stop(); + eve_spi_stop(); eos_net_acquire_for_evt(EOS_EVT_UI | EVE_ETYPE_INTR, 1); } +void app_screen_refresh(void) { + eve_spi_start(); + eve_screen_draw(app_screen()); + eve_spi_stop(); +} + static void widgets_destroy(EVEWidget *widget, uint16_t widget_size) { int i; -- cgit v1.2.3