|
5 | 5 |
|
6 | 6 | #include "ui.h" |
7 | 7 | #include "ui_helpers.h" |
| 8 | +#include "app_hal.h" |
8 | 9 |
|
9 | 10 | #include "./faces/34_2_dial/34_2_dial.h" |
10 | 11 | #include "./faces/75_2_dial/75_2_dial.h" |
@@ -2799,56 +2800,134 @@ void ui_watchfaces_init(void) |
2799 | 2800 | numFaces = 0; |
2800 | 2801 | registerWatchface_cb("Default", &digital_preview, &ui_clockScreen); // register the default watchface |
2801 | 2802 |
|
2802 | | - // register other watchfaces by initializing them and passing the register callback |
| 2803 | + // Register other watchfaces by initializing them and passing the register callback |
| 2804 | +#ifdef ENABLE_FACE_34_2_DIAL |
2803 | 2805 | init_face_34_2_dial(registerWatchface_cb); |
| 2806 | +#endif |
| 2807 | +#ifdef ENABLE_FACE_75_2_DIAL |
2804 | 2808 | init_face_75_2_dial(registerWatchface_cb); |
| 2809 | +#endif |
| 2810 | +#ifdef ENABLE_FACE_79_2_DIAL |
2805 | 2811 | init_face_79_2_dial(registerWatchface_cb); |
| 2812 | +#endif |
| 2813 | +#ifdef ENABLE_FACE_116_2_DIAL |
2806 | 2814 | init_face_116_2_dial(registerWatchface_cb); |
| 2815 | +#endif |
| 2816 | +#ifdef ENABLE_FACE_756_2_DIAL |
2807 | 2817 | init_face_756_2_dial(registerWatchface_cb); |
| 2818 | +#endif |
| 2819 | +#ifdef ENABLE_FACE_B_W_RESIZED |
2808 | 2820 | init_face_b_w_resized(registerWatchface_cb); |
| 2821 | +#endif |
| 2822 | +#ifdef ENABLE_FACE_KENYA |
2809 | 2823 | init_face_kenya(registerWatchface_cb); |
| 2824 | +#endif |
| 2825 | +#ifdef ENABLE_FACE_PIXEL_RESIZED |
2810 | 2826 | init_face_pixel_resized(registerWatchface_cb); |
| 2827 | +#endif |
| 2828 | +#ifdef ENABLE_FACE_RADAR |
2811 | 2829 | init_face_radar(registerWatchface_cb); |
| 2830 | +#endif |
| 2831 | +#ifdef ENABLE_FACE_SMART_RESIZED |
2812 | 2832 | init_face_smart_resized(registerWatchface_cb); |
| 2833 | +#endif |
| 2834 | +#ifdef ENABLE_FACE_TIX_RESIZED |
2813 | 2835 | init_face_tix_resized(registerWatchface_cb); |
| 2836 | +#endif |
| 2837 | +#ifdef ENABLE_FACE_WFB_RESIZED |
2814 | 2838 | init_face_wfb_resized(registerWatchface_cb); |
| 2839 | +#endif |
2815 | 2840 |
|
| 2841 | +#ifdef ENABLE_FACE_174 |
2816 | 2842 | init_face_174(registerWatchface_cb); |
| 2843 | +#endif |
| 2844 | +#ifdef ENABLE_FACE_228 |
2817 | 2845 | init_face_228(registerWatchface_cb); |
| 2846 | +#endif |
| 2847 | +#ifdef ENABLE_FACE_1041 |
2818 | 2848 | init_face_1041(registerWatchface_cb); |
| 2849 | +#endif |
| 2850 | +#ifdef ENABLE_FACE_1167 |
2819 | 2851 | init_face_1167(registerWatchface_cb); |
| 2852 | +#endif |
| 2853 | +#ifdef ENABLE_FACE_1169 |
2820 | 2854 | init_face_1169(registerWatchface_cb); |
| 2855 | +#endif |
| 2856 | +#ifdef ENABLE_FACE_2051 |
2821 | 2857 | init_face_2051(registerWatchface_cb); |
| 2858 | +#endif |
| 2859 | +#ifdef ENABLE_FACE_2151 |
2822 | 2860 | init_face_2151(registerWatchface_cb); |
| 2861 | +#endif |
| 2862 | +#ifdef ENABLE_FACE_3589 |
2823 | 2863 | init_face_3589(registerWatchface_cb); |
2824 | | - |
| 2864 | +#endif |
2825 | 2865 | } |
2826 | 2866 |
|
2827 | 2867 | void ui_update_watchfaces(int second, int minute, int hour, bool mode, bool am, int day, int month, int year, int weekday, |
2828 | 2868 | int temp, int icon, int battery, bool connection, int steps, int distance, int kcal, int bpm, int oxygen) |
2829 | 2869 | { |
2830 | | - |
| 2870 | +#ifdef ENABLE_FACE_34_2_DIAL |
2831 | 2871 | update_check_34_2_dial(ui_home, second, minute, hour, mode, am, day, month, year, weekday, temp, icon, battery, connection, steps, distance, kcal, bpm, oxygen); |
| 2872 | +#endif |
| 2873 | +#ifdef ENABLE_FACE_75_2_DIAL |
2832 | 2874 | update_check_75_2_dial(ui_home, second, minute, hour, mode, am, day, month, year, weekday, temp, icon, battery, connection, steps, distance, kcal, bpm, oxygen); |
| 2875 | +#endif |
| 2876 | +#ifdef ENABLE_FACE_79_2_DIAL |
2833 | 2877 | update_check_79_2_dial(ui_home, second, minute, hour, mode, am, day, month, year, weekday, temp, icon, battery, connection, steps, distance, kcal, bpm, oxygen); |
| 2878 | +#endif |
| 2879 | +#ifdef ENABLE_FACE_116_2_DIAL |
2834 | 2880 | update_check_116_2_dial(ui_home, second, minute, hour, mode, am, day, month, year, weekday, temp, icon, battery, connection, steps, distance, kcal, bpm, oxygen); |
| 2881 | +#endif |
| 2882 | +#ifdef ENABLE_FACE_756_2_DIAL |
2835 | 2883 | update_check_756_2_dial(ui_home, second, minute, hour, mode, am, day, month, year, weekday, temp, icon, battery, connection, steps, distance, kcal, bpm, oxygen); |
| 2884 | +#endif |
| 2885 | +#ifdef ENABLE_FACE_B_W_RESIZED |
2836 | 2886 | update_check_b_w_resized(ui_home, second, minute, hour, mode, am, day, month, year, weekday, temp, icon, battery, connection, steps, distance, kcal, bpm, oxygen); |
| 2887 | +#endif |
| 2888 | +#ifdef ENABLE_FACE_KENYA |
2837 | 2889 | update_check_kenya(ui_home, second, minute, hour, mode, am, day, month, year, weekday, temp, icon, battery, connection, steps, distance, kcal, bpm, oxygen); |
| 2890 | +#endif |
| 2891 | +#ifdef ENABLE_FACE_PIXEL_RESIZED |
2838 | 2892 | update_check_pixel_resized(ui_home, second, minute, hour, mode, am, day, month, year, weekday, temp, icon, battery, connection, steps, distance, kcal, bpm, oxygen); |
| 2893 | +#endif |
| 2894 | +#ifdef ENABLE_FACE_RADAR |
2839 | 2895 | update_check_radar(ui_home, second, minute, hour, mode, am, day, month, year, weekday, temp, icon, battery, connection, steps, distance, kcal, bpm, oxygen); |
| 2896 | +#endif |
| 2897 | +#ifdef ENABLE_FACE_SMART_RESIZED |
2840 | 2898 | update_check_smart_resized(ui_home, second, minute, hour, mode, am, day, month, year, weekday, temp, icon, battery, connection, steps, distance, kcal, bpm, oxygen); |
| 2899 | +#endif |
| 2900 | +#ifdef ENABLE_FACE_TIX_RESIZED |
2841 | 2901 | update_check_tix_resized(ui_home, second, minute, hour, mode, am, day, month, year, weekday, temp, icon, battery, connection, steps, distance, kcal, bpm, oxygen); |
| 2902 | +#endif |
| 2903 | +#ifdef ENABLE_FACE_WFB_RESIZED |
2842 | 2904 | update_check_wfb_resized(ui_home, second, minute, hour, mode, am, day, month, year, weekday, temp, icon, battery, connection, steps, distance, kcal, bpm, oxygen); |
| 2905 | +#endif |
2843 | 2906 |
|
| 2907 | +#ifdef ENABLE_FACE_174 |
2844 | 2908 | update_check_174(ui_home, second, minute, hour, mode, am, day, month, year, weekday, temp, icon, battery, connection, steps, distance, kcal, bpm, oxygen); |
| 2909 | +#endif |
| 2910 | +#ifdef ENABLE_FACE_228 |
2845 | 2911 | update_check_228(ui_home, second, minute, hour, mode, am, day, month, year, weekday, temp, icon, battery, connection, steps, distance, kcal, bpm, oxygen); |
| 2912 | +#endif |
| 2913 | +#ifdef ENABLE_FACE_1041 |
2846 | 2914 | update_check_1041(ui_home, second, minute, hour, mode, am, day, month, year, weekday, temp, icon, battery, connection, steps, distance, kcal, bpm, oxygen); |
| 2915 | +#endif |
| 2916 | +#ifdef ENABLE_FACE_1167 |
2847 | 2917 | update_check_1167(ui_home, second, minute, hour, mode, am, day, month, year, weekday, temp, icon, battery, connection, steps, distance, kcal, bpm, oxygen); |
| 2918 | +#endif |
| 2919 | +#ifdef ENABLE_FACE_1169 |
2848 | 2920 | update_check_1169(ui_home, second, minute, hour, mode, am, day, month, year, weekday, temp, icon, battery, connection, steps, distance, kcal, bpm, oxygen); |
| 2921 | +#endif |
| 2922 | +#ifdef ENABLE_FACE_2051 |
2849 | 2923 | update_check_2051(ui_home, second, minute, hour, mode, am, day, month, year, weekday, temp, icon, battery, connection, steps, distance, kcal, bpm, oxygen); |
| 2924 | +#endif |
| 2925 | +#ifdef ENABLE_FACE_2151 |
2850 | 2926 | update_check_2151(ui_home, second, minute, hour, mode, am, day, month, year, weekday, temp, icon, battery, connection, steps, distance, kcal, bpm, oxygen); |
| 2927 | +#endif |
| 2928 | +#ifdef ENABLE_FACE_3589 |
2851 | 2929 | update_check_3589(ui_home, second, minute, hour, mode, am, day, month, year, weekday, temp, icon, battery, connection, steps, distance, kcal, bpm, oxygen); |
| 2930 | +#endif |
2852 | 2931 | } |
2853 | 2932 |
|
2854 | 2933 | void ui_games_init(void) |
|
0 commit comments