1 /** 2 * @file lv_demo_smartwatch_control.h 3 * 4 */ 5 6 #ifndef LV_DEMO_SMARTWATCH_CONTROL_H 7 #define LV_DEMO_SMARTWATCH_CONTROL_H 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 /********************* 14 * INCLUDES 15 *********************/ 16 #include "lv_demo_smartwatch.h" 17 18 #if LV_USE_DEMO_SMARTWATCH 19 20 /********************* 21 * DEFINES 22 *********************/ 23 24 /********************** 25 * TYPEDEFS 26 **********************/ 27 28 /********************** 29 * GLOBAL PROTOTYPES 30 **********************/ 31 32 /** 33 * Create the control page. Called only once. 34 * @param parent tileview object 35 */ 36 void lv_demo_smartwatch_control_create(lv_obj_t * parent); 37 38 /** 39 * Load the control panel screen 40 * @param anim_type screen load animation to use 41 * @param time animation time 42 * @param delay delay time before loading the screen 43 */ 44 void lv_demo_smartwatch_control_load(lv_screen_load_anim_t anim_type, uint32_t time, uint32_t delay); 45 46 /** 47 * Set the callback funtion for music control 48 * @param cb callback function 49 */ 50 void lv_demo_smartwatch_set_music_control_cb(lv_smartwatch_music_control_cb_t cb); 51 52 /********************** 53 * MACROS 54 **********************/ 55 56 #endif /*LV_USE_DEMO_SMARTWATCH*/ 57 58 #ifdef __cplusplus 59 } /*extern "C"*/ 60 #endif 61 62 #endif /*LV_DEMO_SMARTWATCH_HOME_H*/ 63