diff options
author | Uros Majstorovic <majstor@majstor.org> | 2021-11-16 19:19:51 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2021-11-16 19:19:51 +0100 |
commit | 9d1721008fe1d35abdedbff063ef29d35996124c (patch) | |
tree | 10a38a337add60c6584abcf7745f3c9054444237 /fw/fe310/eos/app | |
parent | 554144b3caeb478881560fc0bff19ba95af87077 (diff) |
board REV3 pins in board.h; eve BT817 support
Diffstat (limited to 'fw/fe310/eos/app')
-rw-r--r-- | fw/fe310/eos/app/app_root.c | 4 | ||||
-rw-r--r-- | fw/fe310/eos/app/app_root.h | 2 |
2 files changed, 3 insertions, 3 deletions
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); |