OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 4082|回复: 1

谁能帮我翻译下原子哥的2.4G无线例子

[复制链接]

18

主题

22

帖子

0

精华

初级会员

Rank: 2

积分
114
金钱
114
注册时间
2014-10-19
在线时间
0 小时
发表于 2014-10-21 12:33:53 | 显示全部楼层 |阅读模式
5金钱
帮我翻译啊啊~~~~~~这段<br />
NRF24L01_TX_Mode();<br />
mode=' ';//从空格键开始 &nbsp;<br />
while(1)<br />
{         &nbsp;                 &nbsp;                                 &nbsp;<br />
&nbsp; &nbsp; if(NRF24L01_TxPacket(tmp_buf)==TX_OK)<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;        LCD_ShowString(60,170,239,32,16,"Sended DATA:"); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;        LCD_ShowString(0,190,239,32,16,tmp_buf);&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;        key=mode;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;        for(t=0;t&lt;32;t++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;        {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                key++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                if(key&gt;('~'))key=' ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                tmp_buf[t]=key; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;        }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;        mode++;&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;        if(mode&gt;'~')mode=' '; &nbsp;         &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;        tmp_buf[32]=0;//加入结束符                 &nbsp;&nbsp;<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp;{                                                                                 &nbsp; <br />
&nbsp;                         &nbsp; &nbsp; &nbsp;         &nbsp; &nbsp; &nbsp;LCD_ShowString(60,170,239,32,16,"Send Failed ");&nbsp;<br />
&nbsp; &nbsp; &nbsp;         &nbsp; &nbsp; &nbsp;LCD_Fill(0,188,240,218,WHITE);//清空上面的显示                         &nbsp;&nbsp;<br />
&nbsp; &nbsp; &nbsp;};<br />
LED0=!LED0;<br />
delay_ms(1500);                                 &nbsp; &nbsp;<br />
};<br />

最佳答案

查看完整内容[请看2#楼]

这里就是发送tmp_buf里面的数据啊 然后不停的修改tmp_buf里面的内容。
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165186
金钱
165186
注册时间
2010-12-1
在线时间
2106 小时
发表于 2014-10-21 12:33:54 | 显示全部楼层
这里就是发送tmp_buf里面的数据啊
<br>然后不停的修改tmp_buf里面的内容。
我是开源电子网www.openedv.com站长,有关站务问题请与我联系。
正点原子STM32开发板购买店铺http://openedv.taobao.com
正点原子官方微信公众平台,点击这里关注“正点原子”
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-9-30 01:44

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表