今天用到多点通信,遇到<a href="http://www.openedv.com/posts/list/979.htm#4858">http://www.openedv.com/posts/list/979.htm#4858</a>如下问题,气的jj痛,后来又翻开手册,看到一句话<center>
</center><p><br />
后来就解决了,以前地址是这个样子的//发送地址<br />
const uint8_t TX0_ADDRESS[RX_ADDR_WIDTH]={0x62,0x62,0x62,0x62,0xA1}; //发送地址<br />
const uint8_t TX1_ADDRESS[RX_ADDR_WIDTH]={0x62,0x62,0x62,0x62,0xA2}; //发送地址<br />
const uint8_t TX2_ADDRESS[RX_ADDR_WIDTH]={0x62,0x62,0x62,0x62,0xA3}; //发送地址<br />
const uint8_t TX3_ADDRESS[RX_ADDR_WIDTH]={0x62,0x62,0x62,0x62,0xA4}; //发送地址<br />
const uint8_t TX4_ADDRESS[RX_ADDR_WIDTH]={0x62,0x62,0x62,0x62,0xA5}; //发送地址<br />
const uint8_t TX5_ADDRESS[RX_ADDR_WIDTH]={0x62,0x62,0x62,0x62,0xA6}; //发送地址<br />
</p>
<p>现在改成这个样子<br />
</p>
<p>//发送地址<br />
const uint8_t TX0_ADDRESS[RX_ADDR_WIDTH]={0xA1,0x62,0x62,0x62,0x62}; //发送地址<br />
const uint8_t TX1_ADDRESS[RX_ADDR_WIDTH]={0xA2,0x62,0x62,0x62,0x62}; //发送地址<br />
const uint8_t TX2_ADDRESS[RX_ADDR_WIDTH]={0xA3,0x62,0x62,0x62,0x62}; //发送地址<br />
const uint8_t TX3_ADDRESS[RX_ADDR_WIDTH]={0xA4,0x62,0x62,0x62,0x62}; //发送地址<br />
const uint8_t TX4_ADDRESS[RX_ADDR_WIDTH]={0xA5,0x62,0x62,0x62,0x62}; //发送地址<br />
const uint8_t TX5_ADDRESS[RX_ADDR_WIDTH]={0xA6,0x62,0x62,0x62,0x62}; //发送地址</p> |