附录 1总电路图附录 2主要程序代码#include "stm32f4xx.h"#include "led.h"#include "exti.h"#include "delay.h"#include "pwm.h"#include "usart.h"#include "string.h"#include "adc.h"#include "stdio.h"#include "sys.h"u8 rx_buffer[64] = {0};u8 buffer[64] = {0};u8 count=0, rx_i, rx_flag = 0;void USART1_IRQHandler(void){if(USART_GetITStatus(USART1, USART_IT_RXNE) == SET){//清空标志位USART_ClearITPendingBit(USART1, USART_IT_RXNE);//从串口 1 当中获取数据buffer[count++] = USART_ReceiveData(USART1);//判断是否...
发表评论取消回复