文件名称:LCD1602
介绍说明--下载内容均来自于网络,请自行研究使用
简易无线遥控中LCD1602的程序代码。希望对大家有帮助-LCD1602
#include <reg52.h>
#include <intrins.h>
#define uint unsigned int
#define uchar unsigned char
//****************************************NRF24L01端口定义***************************************
sbit MISO =P2^3
sbit MOSI =P2^1
sbit SCK =P2^4
sbit CE =P2^5
sbit CSN =P2^0
sbit IRQ =P2^2
//*******************************************************************************************
#define TX_ADR_WIDTH 5 // 5 uints TX address width
#define RX_ADR_WIDTH 5 // 5 uints RX address width
#define TX_PLOAD_WIDTH 32 // 20 uints TX payload
#define RX_PLOAD_WIDTH 32 // 20 uints TX payload
uchar const TX_ADDRESS[TX_ADR_WIDTH]= {0x34,0x43,0x10,0x10,0x01} //本地地址·
uchar const RX_ADDRESS[RX_ADR_WIDTH]= {0x34,0x43,0x10,0x10,0x01} //接收地址·
//*************************** 状
#include <reg52.h>
#include <intrins.h>
#define uint unsigned int
#define uchar unsigned char
//****************************************NRF24L01端口定义***************************************
sbit MISO =P2^3
sbit MOSI =P2^1
sbit SCK =P2^4
sbit CE =P2^5
sbit CSN =P2^0
sbit IRQ =P2^2
//*******************************************************************************************
#define TX_ADR_WIDTH 5 // 5 uints TX address width
#define RX_ADR_WIDTH 5 // 5 uints RX address width
#define TX_PLOAD_WIDTH 32 // 20 uints TX payload
#define RX_PLOAD_WIDTH 32 // 20 uints TX payload
uchar const TX_ADDRESS[TX_ADR_WIDTH]= {0x34,0x43,0x10,0x10,0x01} //本地地址·
uchar const RX_ADDRESS[RX_ADR_WIDTH]= {0x34,0x43,0x10,0x10,0x01} //接收地址·
//*************************** 状
(系统自动生成,下载前可以参看下载内容)
下载文件列表
LCD1602.doc