资源简介
nrf2401的收发 能无线接收到温度值

代码片段和文件信息
#include “12864.h“
#include“delay.h“
//写命令
void writeCmd(uchar cmd)
{
RS = 0;
RW = 0;
E = 0;
delayUs();
LCD_DATA = cmd;
delayUs();
E = 1;
delayUs();
E = 0;
}
//写数据
void writeData(uchar dat)
{
RS = 1;
RW = 0;
E = 0;
delayUs();
LCD_DATA = dat;
delayUs();
E = 1;
delayUs();
E = 0;
}
//初始化LCD
void init()
{
PSB = 1; //并口方式
writeCmd(0x30); //基本指令 扩充指令为34H
DelayMs(10);
writeCmd(0x30); //选择8bit数据流
DelayMs(10); //延时大于37us
writeCmd(0x0c); //显示开 关光标
DelayMs(10);
writeCmd(0x01); //清屏
DelayMs(10);
writeCmd(0x06); //指定在资料的读取及写入时,设定游标的移动方向及指定显示的移位,光标从右向左加1位移动
DelayMs(10);
}
/*void ClrScreen()
{
writeCmd(0x01);
DelayMs(15);
}*/
void LCD_Write_String(uchar xuchar yuchar *s)
{
uchar pos;
if(x==0)
{x=0x80;}
else
if(x==1)
{x=0x90;}
else
if(x==2)
{x=0x88;}
else
if(x==3)
{x=0x98;}
pos=x+y;
writeCmd(pos);
/* while(*s>0)
{
writeData(*s);
s++;
DelayUs2x(50);
} */
while (*s)
{
writeData( *s);
s ++;
DelayUs2x(50);
}
}
/*void LCD_Write_char(uchar xuchar y)
{
uchar pos;
if(x==0)
{x=0x80;}
else
if(x==1)
{x=0x90;}
else
if(x==2)
{x=0x88;}
else
if(x==3)
{x=0x98;}
pos=x+y;
writeCmd(pos);
//writeData( Data);
} */
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-06-04 19:34 test2\
目录 0 2015-06-05 13:29 test2\recv\
文件 1518 2015-06-04 15:23 test2\recv\12864.c
文件 578 2015-06-04 15:23 test2\recv\12864.h
文件 4054 2015-06-04 20:44 test2\recv\12864.LST
文件 5433 2015-06-04 20:44 test2\recv\12864.OBJ
文件 816 2015-06-04 20:29 test2\recv\delay.c
文件 693 2015-06-04 20:19 test2\recv\delay.h
文件 1993 2015-06-04 20:44 test2\recv\delay.LST
文件 1642 2015-06-04 20:44 test2\recv\delay.OBJ
文件 13348 2015-06-04 19:40 test2\recv\nrf24l01.h
文件 21382 2015-06-04 20:44 test2\recv\recv
文件 403 2015-06-04 20:44 test2\recv\recv.c
文件 4036 2015-06-04 20:44 test2\recv\recv.hex
文件 68 2015-06-04 20:44 test2\recv\recv.lnp
文件 1604 2015-06-04 20:44 test2\recv\recv.LST
文件 22540 2015-06-04 20:44 test2\recv\recv.M51
文件 17414 2015-06-04 20:44 test2\recv\recv.OBJ
文件 1701 2015-06-05 13:29 test2\recv\recv.Opt
文件 200 2015-06-05 13:29 test2\recv\recv.plg
文件 2184 2015-06-04 21:56 test2\recv\recv.Uv2
文件 1701 2015-06-04 21:56 test2\recv\recv_Opt.Bak
文件 0 2015-06-04 19:34 test2\recv\recv_Uv2.Bak
目录 0 2015-06-05 10:27 test2\send\
文件 13348 2015-06-04 19:41 test2\send\2401.H
文件 816 2015-06-04 20:07 test2\send\delay.c
文件 672 2015-06-04 20:07 test2\send\delay.h
文件 1993 2015-06-04 20:45 test2\send\delay.LST
文件 1642 2015-06-04 20:45 test2\send\delay.OBJ
文件 2055 2015-06-04 20:11 test2\send\ds18b20.c
文件 657 2015-06-04 20:11 test2\send\ds18b20.h
............此处省略14个文件信息
相关资源
- 单片机与温度传感器DS18B20的程序设计
- 毕业论文之温度传感器DS18B20(源码
- stm32 ds18b20 温度传感器 测试通过
- 51单片机读取温度数据存储到SD卡中并
- STM32F103 DS18B20 V3.5.0固件库驱动程序工
- DS18B20分布式多点测温的Proteus仿真
- 单片机 DS18B20 温度控制系统
- 课程设计蔬菜大棚自动控制系统,包
- ds18b20温度传感是什么传感器
- DS18B20_Serial_println.ino
- ds18b20测温例程tm4c123x
- STM32F103C8T6读取DS18B20串口显示程序.r
- DS18B20温度+DHT11湿度+LCD1602
- TM4C系列ds18b20温度传感器例程
- 读写ds18b20内部eeprom
- 基于FPGA的DS18B20单总线控制+数码管显
- STM32F103C8T6读取DS18B20串口显示程序
- STM32F103读取ds18b20温度传感器
- 基于51单片机的NRF2401无线火灾的报警
- DS18B20-液晶1602显示温度和控制(代码
- 基于FPGA的LCD1602实时显示DS18b20温度
- 通过DS18B20检测环境温度,并在LCD128
- FPGA实现的DS18B20温度传感器
- stm32f407对ds18b20温度传感器数据的采集
- 基于zigbee的温度传感器DS18B20
- nRF2401无线模块使用详解+例程
- DS18B20 AT89C51 单片机 protus keil 温度传感
- FPGA综合系统设计二基于FPGA的温度采集
- 基于STC89C52和DS18B20的温控系统
- stm32f103 ds18b20
评论
共有 条评论