📄 text1.c
字号:
/******************************************************************************************/
/*******************************************************************************************/
#include <reg52.h>
#include <intrins.h>
#include <math.h>
#include<absacc.h>
#define uchar unsigned char
#define uint unsigned int
#define WC 0x00 // Write configuration register command
#define RC 0x10 // Read configuration register command
#define WTP 0x20 // Write TX Payload command
#define RTP 0x21 // Read TX Payload command
#define WTA 0x22 // Write TX Address command
#define RTA 0x23 // Read TX Address command
#define RRP 0x24 // Read RX Payload command
/*******************************************************************************************/
char RxTxConf[10]=
{
0x01,0x0c,0x44, 0x20, 0x20, 0xc1, 0xc1, 0xc1,0xc1, 0x58
}; //功率// //设置地址和数据的位数//地址
//设置433。00MHz
//发射功率10db
//发送和接收的地址为4BIT
//发射和接收为 8 BIT 32位
//初始地址为OXCC,OXCC,OXCC,OXCC
//CRC模式开,8位模式,外部晶振16M 没有外部时钟输出,
char RxTxConf_1bit[10]=
{
0x01,0x0c,0x44, 0x08, 0x08, 0xcc, 0xcc, 0xcc,0xcc, 0x58
};
//设置433。00MHz
//发射功率10db
//发送和接收的地址为4BIT
//发射和接收为1 BIT 8位
//初始地址为OXCC,OXCC,OXCC,OXCC
//CRC模式开,8位模式,外部晶振16M 没有外部时钟输出
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -