标题: Stm32F407蓝牙程序 [打印本页]

作者: machinemak    时间: 2019-6-3 19:20
标题: Stm32F407蓝牙程序
本模块支持UART,SPI接口,并支持数据透 传和直驱,具有成本低、体积小、功耗低、收 发灵敏性高等优点,只需配备少许的外围元件就 能实现其强大功能。

单片机源程序如下:
  1. #include "stm32f4xx.h"
  2. #include "Delay.h"
  3. #include "Led.h"
  4. #include "Key.h"
  5. #include "Beep.h"
  6. #include "exti.h"
  7. #include "usart.h"
  8. #include "stdio.h"

  9. uint8_t uart1_rx_buf[5]={0xAA,0x00,0x00,0x00,0x00};
  10. uint8_t uart1_flag = 0;




  11. int main(void)
  12. {
  13.         uint16_t data;

  14.        
  15.         NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2); //只做1次分组设置就ok
  16.         //Led_Init();
  17.         //Key_Init();
  18.         //Beep_Init();
  19.         //Exti_Init();
  20.         Uart1_Init(9600);
  21.         Uart3_Init(9600);
  22.                
  23.        
  24.         while(1)
  25.         {
  26.         ;
  27.         }
  28.        
  29.         return 0;
  30. }
复制代码

所有资料51hei提供下载:
bluetooth.7z (289.65 KB, 下载次数: 39)





作者: admin    时间: 2019-6-7 05:52
本帖需要重新编辑补全电路原理图,源码,详细说明与图片即可获得100+黑币(帖子下方有编辑按钮)




欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1