WouoUI-PageVersion/Csource/example/LittleClock/LittleClockUI.h
Silent Sheep e81283f42c 版本0.1.1更新:
1. 将全局数组去掉,改为指针连接上级页面,支持理论上无限多个页面,不再受数组大小的限制。
2. UI文件中的变量整理归类,使代码体积占用更小(会在下一个大版本中给出具体的代码内存占用数据)。
3. 修复在弹窗时页面跳转的bug。
2024-08-30 16:16:15 +08:00

37 lines
1.2 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __LITTLECLOCKUI_H__
#define __LITTLECLOCKUI_H__
#ifdef __cplusplus
extern "C" {
#endif
void LittleClockUI_Init(void);
void LittleClockUI_Proc(void);
#ifdef __cplusplus
}
#endif
// #define DATE_UPDATE_MSK 0x01
// #define TIME_UPDATE_MSK 0x02
// #define ALARM1_UPDATE_MSK 0x04
// #define ALARM2_UPDATE_MSK 0x08 //用于检测update flag的置位
// #define ALARM1_ENABLE_MSK 0x10
// #define ALARM2_ENABLE_MSK 0x20 //用于检测update flag的置位
// #define ALARM1_RING_MSK 0x40
// #define ALARM2_RING_MSK 0x80 //主函数中置位,在响铃页面检测
// #define SET_FLAG(flag, msk) (flag|=msk)
// #define FLAG_IS_SET(flag, msk) (flag&msk)
// #define CLEAR_FLAG(flag, msk) (flag&= (~msk))
// extern uint16_t fps; // 外界需要提供一个变量统计一秒内UIproc能刷新几次粗略估计帧率'
// extern uint8_t update_flag; //用于主函数中判断是否需要更新rtc芯片的数据
// extern DigitalPage calendar_page;
// extern DigitalPage clock_page; //用于主函数中1秒更新一次时间
// extern DigitalPage alarm1_page;
// extern DigitalPage alarm2_page;
// extern RaderPicPage ring_page;
#endif