1 /** 2 * @file lv_demo_smartwatch_qr.h 3 * 4 */ 5 6 #ifndef LV_DEMO_SMARTWATCH_QR_H 7 #define LV_DEMO_SMARTWATCH_QR_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 qr page. Called only once. 34 */ 35 void lv_demo_smartwatch_qr_create(void); 36 37 /** 38 * Load the qr screen 39 * @param anim_type screen load animation to use 40 * @param time animation time 41 * @param delay delay time before loading the screen 42 */ 43 void lv_demo_smartwatch_qr_load(lv_screen_load_anim_t anim_type, uint32_t time, uint32_t delay); 44 45 /** 46 * Clear the qr codes in list 47 */ 48 void lv_demo_smartwatch_qr_list_clear(void); 49 50 /** 51 * Add qr codes to the list 52 * @param id determines the icon and name of the qr from inbuilt list. Value (0-9) 53 * @param link link to be added as a qr code 54 */ 55 void lv_demo_smartwatch_qr_list_add(uint8_t id, const char * link); 56 57 58 /********************** 59 * MACROS 60 **********************/ 61 62 #endif /*LV_USE_DEMO_SMARTWATCH*/ 63 64 #ifdef __cplusplus 65 } /*extern "C"*/ 66 #endif 67 68 #endif /*LV_DEMO_SMARTWATCH_HOME_H*/ 69