Files
2022-08-19 10:59:55 +08:00

38 lines
982 B
C
Executable File

/*
Copyright (c) 2019 lewis he
This is just a demonstration. Most of the functions are not implemented.
The main implementation is low-power standby.
The off-screen standby (not deep sleep) current is about 4mA.
Select standard motherboard and standard backplane for testing.
Created by Lewis he on October 10, 2019.
*/
#ifndef __GUI_H
#define __GUI_H
typedef enum {
LV_ICON_BAT_EMPTY,
LV_ICON_BAT_1,
LV_ICON_BAT_2,
LV_ICON_BAT_3,
LV_ICON_BAT_FULL,
LV_ICON_CHARGE,
LV_ICON_CALCULATION
} lv_icon_battery_t;
typedef enum {
LV_STATUS_BAR_BATTERY_LEVEL = 0,
LV_STATUS_BAR_BATTERY_ICON = 1,
LV_STATUS_BAR_WIFI = 2,
LV_STATUS_BAR_BLUETOOTH = 3,
} lv_icon_status_bar_t;
void setupGui();
void updateStepCounter(uint32_t counter);
void updateBatteryIcon(lv_icon_battery_t index);
void wifi_list_add(const char *ssid);
void wifi_connect_status(bool result);
void updateBatteryLevel();
#endif /*__GUI_H */