1 /** 2 * @file lv_demo_ebike_private.h 3 * 4 */ 5 6 #ifndef LV_DEMO_EBIKE_PRIVATE_H 7 #define LV_DEMO_EBIKE_PRIVATE_H 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 /********************* 14 * INCLUDES 15 *********************/ 16 #include "../../lvgl.h" 17 18 /********************* 19 * DEFINES 20 *********************/ 21 #define EBIKE_COLOR_TURQUOISE lv_color_hex(0x55FFEB) 22 #define EBIKE_COLOR_LIME lv_color_hex(0x91FF3B) 23 24 #if LV_DEMO_EBIKE_PORTRAIT 25 LV_FONT_DECLARE(font_ebike_inter_20) 26 LV_FONT_DECLARE(font_ebike_trump_40) 27 LV_FONT_DECLARE(font_ebike_trump_72) 28 #define EBIKE_FONT_SMALL &font_ebike_inter_20 29 #define EBIKE_FONT_MEDIUM &font_ebike_trump_40 30 #define EBIKE_FONT_LARGE &font_ebike_trump_72 31 #else 32 LV_FONT_DECLARE(font_ebike_inter_14) 33 LV_FONT_DECLARE(font_ebike_trump_24) 34 LV_FONT_DECLARE(font_ebike_trump_48) 35 #define EBIKE_FONT_SMALL &font_ebike_inter_14 36 #define EBIKE_FONT_MEDIUM &font_ebike_trump_24 37 #define EBIKE_FONT_LARGE &font_ebike_trump_48 38 #endif 39 40 /********************** 41 * TYPEDEFS 42 **********************/ 43 44 /********************** 45 * GLOBAL PROTOTYPES 46 **********************/ 47 48 /** 49 * Get a draw bug where the Lottie animations can be drawn 50 * @return 51 */ 52 lv_draw_buf_t * lv_demo_ebike_get_lottie_draw_buf(void); 53 54 /********************** 55 * GLOBAL VARIABLES 56 **********************/ 57 58 /** Stores the current language */ 59 extern lv_subject_t ebike_subject_language; 60 61 /********************** 62 * MACROS 63 **********************/ 64 65 #ifdef __cplusplus 66 } /*extern "C"*/ 67 #endif 68 69 #endif /*LV_DEMO_EBIKE_PRIVATE_H*/ 70