From 9d1721008fe1d35abdedbff063ef29d35996124c Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Tue, 16 Nov 2021 19:19:51 +0100 Subject: board REV3 pins in board.h; eve BT817 support --- fw/fe310/eos/app/app_root.c | 4 ++-- fw/fe310/eos/app/app_root.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'fw/fe310/eos/app') diff --git a/fw/fe310/eos/app/app_root.c b/fw/fe310/eos/app/app_root.c index 1b46ea8..fac9548 100644 --- a/fw/fe310/eos/app/app_root.c +++ b/fw/fe310/eos/app/app_root.c @@ -39,12 +39,12 @@ void app_root_refresh(void) { eve_spi_stop(); } -void app_root_init(eve_view_constructor_t home_page) { +void app_root_init(eve_view_constructor_t home_page, int b) { EVERect g; eve_spi_start(); - eve_brightness(0x40); + if (b >= 0) eve_brightness(b); eve_font_init(&font, APP_FONT_HANDLE); diff --git a/fw/fe310/eos/app/app_root.h b/fw/fe310/eos/app/app_root.h index 7a44565..b085344 100644 --- a/fw/fe310/eos/app/app_root.h +++ b/fw/fe310/eos/app/app_root.h @@ -9,4 +9,4 @@ EVEWindowRoot *app_root(void); void app_root_refresh(void); -void app_root_init(eve_view_constructor_t home_page); +void app_root_init(eve_view_constructor_t home_page, int b); -- cgit v1.2.3