#ifndef __HOMEPAGE_H__
#define __HOMEPAGE_H__

#include "../menu.h"

extern MENU_TYP homepage;

static uint8_t icon_data_battery0_20_12[] = {
    0x00, 0xFC, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02,
    0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0xFC, 0xF8, 0x00,
    0x00, 0x03, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x03, 0x01, 0x00};
static uint8_t icon_data_battery25_20_12[] = {
    0x00, 0xFC, 0xFE, 0xFE, 0xFE, 0x02, 0x02, 0x02, 0x02, 0x02,
    0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0xFC, 0xF8, 0x00,
    0x00, 0x03, 0x07, 0x07, 0x07, 0x04, 0x04, 0x04, 0x04, 0x04,
    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x03, 0x01, 0x00};
static uint8_t icon_data_battery50_20_12[] = {
    0x00, 0xFC, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0x02,
    0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0xFC, 0xF8, 0x00,
    0x00, 0x03, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x04,
    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x03, 0x01, 0x00};
static uint8_t icon_data_battery75_20_12[] = {
    0x00, 0xFC, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE,
    0xFE, 0xFE, 0xFE, 0x02, 0x02, 0x02, 0x02, 0xFC, 0xF8, 0x00,
    0x00, 0x03, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,
    0x07, 0x07, 0x07, 0x04, 0x04, 0x04, 0x04, 0x03, 0x01, 0x00};
static uint8_t icon_data_battery100_20_12[] = {
    0x00, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE,
    0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xF8, 0x00,
    0x00, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,
    0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x01, 0x00};
static icon_t icon_battery_20_12[5] = {
    {icon_data_battery0_20_12, 20, 12, NULL},
    {icon_data_battery25_20_12, 20, 12, NULL},
    {icon_data_battery50_20_12, 20, 12, NULL},
    {icon_data_battery75_20_12, 20, 12, NULL},
    {icon_data_battery100_20_12, 20, 12, NULL},
};
static uint8_t icon_data_bt_on_12_12[] = {
    0x00, 0x00, 0x00, 0x10, 0xA0, 0x40, 0xFE, 0x44, 0xA8, 0x10, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x0F, 0x04, 0x02, 0x01, 0x00, 0x00};
static icon_t  icon_bt_on_12_12 = {icon_data_bt_on_12_12, 12, 12, NULL};
static uint8_t icon_data_wifi_on_12_12[] = {
    0x10, 0x18, 0x4C, 0x64, 0x36, 0x92, 0x92, 0x36, 0x64, 0x4C, 0x18, 0x10,
    0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x04, 0x01, 0x00, 0x00, 0x00, 0x00};
static icon_t icon_wifi_on_12_12 = {icon_data_wifi_on_12_12, 12, 12, NULL};

int  homepage_init(void);
int  homepage_uninit(void);
void homepage_task(void);

#endif
