📄 ledsubfuc.h
字号:
/********************HEAD FILE**********************/
#ifndef _LEDSUBFUC_H
#define _LEDSUBFUC_H
#include <W77E58.h>
#define uchar unsigned char
#define uint unsigned int
#define ulong unsigned long
#define NOP _nop_()
sbit SCL1 =P1^0; //data port of 24C02
sbit SDA1 =P1^1;
sbit SCL =P1^4; //data port of PCF8563
sbit SDA =P1^5;
sbit DS1820 =P1^6;
sbit FDDOG =P1^7;
sbit MCS =P3^5; //select port of IDT7134
static uchar temp_z,temp_x; //to save the temperature vale
static uchar time[9]; //begin from time[0]
// sec,min,hour,date,week,month,year
//the last two data is temperature
void watchdog(void);
void set_time(uchar time[]);
void get_time(uchar time[]);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -