📄 comsub.h
字号:
#ifndef COMSUB_H
#define COMSUB_H
#include "common.h"
//const uint yearday[100] PROGMEM = {366,365,365,365,366,365,365,365,366,365,365,365,366,365,365,365,366,365,365,365,366,365,365,365,366, //2000-2024年
// 365,365,365,366,365,365,365,366,365,365,365,366,365,365,365,366,365,365,365,366,365,365,365,366,365, //2025-2049年
// 365,365,366,365,365,365,366,365,365,365,366,365,365,365,366,365,365,365,366,365,365,365,366,365,365, //2050-2074年
// 365,366,365,365,365,366,365,365,365,366,365,365,365,366,365,365,365,366,365,365,365,366,365,365,365}; //2075-2099年
//---非闰年各月份天数表(1~12月,数组0空置)
//const uchar monthday[13] PROGMEM = {0,31,28,31,30,31,30,31,31,30,31,30,31};
//const uchar runmonthday[13] PROGMEM = {0,31,29,31,30,31,30,31,31,30,31,30,31};
uchar timeb2h(uchar a);
uchar timeh2b(uchar a);
void timepastforint(void);
void Get_driver(void);
void Get_tzxs(void);
void Get_time(void);
uchar com_xor(uint a);
void Get_qiche(void);
void Ini_speed(void);
void locatetime(void);
uchar comtime(uchar *p);
void send_no_data(uchar j);
void get_send(uchar j);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -