/***********************自定义头文件*************************/
#ifndef _led_pwm_h_
#define _led_pwm_h_
#include <reg52.h>
#include <absacc.h>
#define uint unsigned int
#define uchar unsigned char
extern uchar gongzuo,gongzuo_
time1;
extern bit gongzuo_ji;
void led_case(void);
#endif
/***************************led********************************/
#include "led_pwm.h"
void led_case(void)
{
if(gongzuo_ji == 1)
{
if(gongzuo == 1)
{
XBYTE[0X8000] = 0XFE;
}
if(gongzuo == 2)
{
XBYTE[0X8000] = 0XFD;
}
if(gongzuo == 3)
{
XBYTE[0X8000] = 0XFB;
}
}
else
{
XBYTE[0X8000] = 0XFF;
}
}
请问这里的XBYTE[0x8000] 什么意思?
一周热门 更多>