-
-
...此口向RF 芯片写入资料
sbit SCK=P1^3; //SPI 时钟
sbit LCD=P2^0; //指示灯
sbit jian1=P3^4; //控制键1
sbit jian2=P3^5; //控制键2
//RF寄存器配置//
unsigned char idata RFConf[11]=
{
0x00, //配置命令//
0x6C, //CH_NO,频率433.2MHZ
...
-
-
...锁存与显示功能。选手按下按钮,锁存相应编号,显示在LCD显示屏上,如“answerer:02”,并且优先抢答选手的编号一直保持到清除为止。
IV.
具有定时抢答功能,抢答时间可设...
-
-
...io.h>
#include <string.h>
#include <DS18B20.h>
#include "LCD1602.h" ////液晶显示头文件
//sbit DQ = P3^4; //定义DQ引脚为P3.4
unsigned char t[2],*pt; //用来存放温度值,测温程序就是通过这个数组与主函数通信的
unsigned char TempBuff...
-
-
DS1302时钟+1602液晶#include <REGX52.H>
#include "LCD1602.h"
#include "DS1302.h"
void Delay1ms(unsigned int count)
{
unsigned int i,j;
for(i=0;i<count;i++)
for(j=0;j<120;j++);
}
main()
{
SYSTEMTIME CurrentTime;
LCD_Initial();
Initial_DS1302();
GotoXY(0,0);
...
-
-
...示 7.按键输入实验 8.矩阵键盘 9.LCD1602液晶屏 10.D/A数模转换(DAC0832) 11.A/D模数转换(ADC0804) 12.12.LCD12864显示文字(AMPIRE128X64)
-
-
...DSP实验,步进电机实验,RTC 实时时钟实验,PWM 实验., LCD12864 显示实验,红外遥控实验等等六、实验例程............................................................................................................................... 56.0 实验准备...................
-
-
字符液晶1602仿真测试#include <REGX52.H>
#include "LCD1602.h"
unsigned char TempBuffer[10];
void IntToStr(unsigned int t, unsigned char *str, unsigned char n)
{
unsigned char a[5]; char i, j;  ...
-
-
...证,需要须改一下函数
void lcd_wait(void)
{
DATAPORT=0xff;
LCM_EN=1;
LCM_RS=0;
LCM_RW=1;
_nop_();
while(DATAPORT&BUSY)...
-
-
...ess.bmp"
int bmp_show(char * pic_path, int x0, int y0);
void lcd_init(void);
void lcd_free(void);
int bmp_show_bck(int x0, int y0, int W, int H);
void get_xy( int * x, int *y);
#endif想了解更多,请下载附件查看。
-
-
...th.h>
#define uc unsigned char
#define ui unsigned int
#define LCDPAGE 0xB8 //设置页指令。
#define LCDLINE 0x40 //设置列指令。
sbit E= P3^5;
sbit RW=P3^4;
sbit RS=P3^2;
sbit L=P3^1; //左半平面
sbit R=P3^0...