summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/app/root.c
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/eos/app/root.c')
-rw-r--r--fw/fe310/eos/app/root.c12
1 files changed, 9 insertions, 3 deletions
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;