⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 diver.h

📁 包括电源开关判断程序
💻 H
字号:
#define uchar unsigned char
#define uint unsigned int
unsigned char code ONd[]=
{0x57,0x45,0x4c,0x43,
 0x4f,0x4d,0x45,0x20,
 0x54,0x4f,0x20,0x55,
 0x53,0x45};
unsigned char code OFFd[]=
{0x42,0x59,0x45,0x20,
 0x20,0x20,0x20,0x20,
 0x42,0x59,0x45,0x20,
0x20,0x20,};
unsigned char code  VOLUE[]=
{"VOLUE  "};
unsigned char code  DC[]=
{0x30,0x31,0x32,0x33,0x34,0x35,0x36,  //要改一下
0x37,0x38,0x39};
unsigned char code  VR[]=
{0x56,0x4f,0x4c,0x55,0x45,0x5f,0x52};
unsigned char code  VL[]=
{0x56,0x4f,0x4c,0x55,0x45,0x5f,0x4c};
unsigned char code  BR[]=
{0x42,0x41,0x53,0x53,0x5F,0x52,0x20};
unsigned char code  BL[]=
{0x42,0x41,0x53,0x53,0x5F,0x4c,0x20};
unsigned char code  HR[]=
{0x48,0x49,0x47,0x48,0x5F,0x52,0x20};
unsigned char code  HL[]=
{0x48,0x49,0x47,0x48,0x5F,0x4c,0x20};
uchar A[5];
uchar VOL=50;
uchar  Vol_R=50;    /////////////
uchar  Vol_L=50;    /////////////
uchar  High_R=128;
uchar  High_L=128;
uchar  Bass_R=128;
uchar  Bass_L=128;
uint   counter=0;
sbit  SDA=P3^7;
sbit  SCL=P3^6;
sbit  OFF_ON=P3^0;   
sbit  SPEAK=P3^1;
sbit  RS=P2^7;//**************8
sbit  RW=P2^6;
sbit  E=P2^5;  //***********
sbit  slp=P2^4;
 bit  K=1;
 bit  S=0;





⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -