hardware driver separation

This commit is contained in:
sharandac
2020-08-26 15:20:44 +02:00
parent c335328ab4
commit d93c90e3c8
13 changed files with 42 additions and 28 deletions

View File

@@ -27,7 +27,10 @@ lv_obj_t *preload = NULL;
lv_obj_t *preload_label = NULL;
lv_style_t style;
void splash_screen_stage_one( TTGOClass *ttgo ) {
void splash_screen_stage_one( void ) {
TTGOClass *ttgo = TTGOClass::getWatch();
lv_style_init( &style );
lv_style_set_radius(&style, LV_OBJ_PART_MAIN, 0);
lv_style_set_bg_color(&style, LV_OBJ_PART_MAIN, LV_COLOR_BLACK);
@@ -75,8 +78,9 @@ void splash_screen_stage_update( const char* msg, int value ) {
lv_task_handler();
}
void splash_screen_stage_finish( TTGOClass *ttgo ) {
// ttgo->bl->adjust( 0 );
void splash_screen_stage_finish( void ) {
TTGOClass *ttgo = TTGOClass::getWatch();
for( int bl = display_get_brightness() ; bl > 0 ; bl-- ) {
ttgo->bl->adjust( bl );
delay(1);