1 #ifndef __HOMEPAGE_H__
2 #define __HOMEPAGE_H__
3 
4 #include "../menu.h"
5 
6 extern MENU_TYP homepage;
7 
8 static uint8_t icon_data_battery0_20_12[] = {
9     0x00, 0xFC, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02,
10     0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0xFC, 0xF8, 0x00,
11     0x00, 0x03, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
12     0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x03, 0x01, 0x00};
13 static uint8_t icon_data_battery25_20_12[] = {
14     0x00, 0xFC, 0xFE, 0xFE, 0xFE, 0x02, 0x02, 0x02, 0x02, 0x02,
15     0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0xFC, 0xF8, 0x00,
16     0x00, 0x03, 0x07, 0x07, 0x07, 0x04, 0x04, 0x04, 0x04, 0x04,
17     0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x03, 0x01, 0x00};
18 static uint8_t icon_data_battery50_20_12[] = {
19     0x00, 0xFC, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0x02,
20     0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0xFC, 0xF8, 0x00,
21     0x00, 0x03, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x04,
22     0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x03, 0x01, 0x00};
23 static uint8_t icon_data_battery75_20_12[] = {
24     0x00, 0xFC, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE,
25     0xFE, 0xFE, 0xFE, 0x02, 0x02, 0x02, 0x02, 0xFC, 0xF8, 0x00,
26     0x00, 0x03, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,
27     0x07, 0x07, 0x07, 0x04, 0x04, 0x04, 0x04, 0x03, 0x01, 0x00};
28 static uint8_t icon_data_battery100_20_12[] = {
29     0x00, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE,
30     0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xF8, 0x00,
31     0x00, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,
32     0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x01, 0x00};
33 static icon_t icon_battery_20_12[5] = {
34     {icon_data_battery0_20_12, 20, 12, NULL},
35     {icon_data_battery25_20_12, 20, 12, NULL},
36     {icon_data_battery50_20_12, 20, 12, NULL},
37     {icon_data_battery75_20_12, 20, 12, NULL},
38     {icon_data_battery100_20_12, 20, 12, NULL},
39 };
40 static uint8_t icon_data_bt_on_12_12[] = {
41     0x00, 0x00, 0x00, 0x10, 0xA0, 0x40, 0xFE, 0x44, 0xA8, 0x10, 0x00, 0x00,
42     0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x0F, 0x04, 0x02, 0x01, 0x00, 0x00};
43 static icon_t  icon_bt_on_12_12 = {icon_data_bt_on_12_12, 12, 12, NULL};
44 static uint8_t icon_data_wifi_on_12_12[] = {
45     0x10, 0x18, 0x4C, 0x64, 0x36, 0x92, 0x92, 0x36, 0x64, 0x4C, 0x18, 0x10,
46     0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x04, 0x01, 0x00, 0x00, 0x00, 0x00};
47 static icon_t icon_wifi_on_12_12 = {icon_data_wifi_on_12_12, 12, 12, NULL};
48 
49 int  homepage_init(void);
50 int  homepage_uninit(void);
51 void homepage_task(void);
52 
53 #endif
54