欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136
標題:
nrf24l01與stm32f103查詢接受發送程序源碼
[打印本頁]
作者:
假大寶劍
時間:
2018-8-20 10:28
標題:
nrf24l01與stm32f103查詢接受發送程序源碼
24l01與stm32f1查詢接受發程序源碼,這個程序有祝大家學習參考24l01與stm32f1原理。
0.png
(43.22 KB, 下載次數: 46)
下載附件
2018-8-20 18:02 上傳
單片機源程序如下:
#include "includes.h"
int main()
{
u8 tmp_buf[3],i;
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2); //設置NVIC中斷分組2:2位搶占優先級,2位響應優先級
delay_init(); //延時函數初始化
TIM4_Init(9,7199);//Tout(溢出時間)=(ARR+1)(PSC+1)/Tclk =10*7200/72000000s=1ms
LED_Init();
USART1_Init(115200,0); //串口初始化為115200
delay_us(500);
NRF24L01_Init(); //初始化NRF24L01
while(NRF24L01_Check())
{
printf("NRF24L01 Error\r\n");
delay_ms(1000);
}
printf("NRF24L01 OK\r\n");
delay_ms(1000);
NRF24L01_RX_Mode();
delay_ms(1000);delay_ms(1000);
while(1)
{
while(NRF24L01_RxPacket(tmp_buf)!=RX_OK)
{
// printf("Rx Failed\r\n");
}
// printf("Rx ok\r\n");
for(i=0;i<3;i++)
printf("%d,",tmp_buf[i]);
printf("\r\n");
// else
// {
//
// }
}
}
復制代碼
所有資料51hei提供下載:
nrf24l01_STM32F103C8T6查詢接收發.rar
(900.47 KB, 下載次數: 84)
2018-8-20 18:02 上傳
點擊文件名下載附件
24l01與stm32f1查詢接受發程序源碼
下載積分: 黑幣 -5
作者:
renyicqupt
時間:
2019-5-24 16:18
樓主在嗎?請教您這個怎么接線?
歡迎光臨 (http://m.raoushi.com/bbs/)
Powered by Discuz! X3.1