admin管理员组

文章数量:1654386

手机蓝牙助手

下载链接
链接:https://pan.baidu/s/17ecKjowgyzPd04ojvSK2Kg
提取码:idci

连接
RXD — PA2
TXD — PA3
波特率 9600

蓝牙测试程序

#include  "myusart.h"
#include "stm32f10x_usart.h"
#include  "stdio.h"
#include "led.h"
#include "stm32f10x_rcc.h"
#include "stm32f10x_tim.h"
 u8 res;  
_Bool USART_STATE =0;
void USART_Config(void)
{
   
    GPIO_InitTypeDef  GPIO_InitStructure;
    USART_InitTypeDef USART_InitStructure;
  

    RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE);
    RCC_APB1PeriphClockCmd(RCC_APB1Periph_USART2, ENABLE);
	   MYNVIC_Configuration();
    GPIO_InitStructure.GPIO_Pin = GPIO_Pin_2;
    GPIO_InitStructure.GPIO_Mode 

本文标签: 蓝牙程序单片机手机