欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136
標(biāo)題:
基于stm32的避障智能小車(chē)源碼
[打印本頁(yè)]
作者:
火火的菜鳥(niǎo)
時(shí)間:
2018-11-8 18:12
標(biāo)題:
基于stm32的避障智能小車(chē)源碼
可惜之前忘記錄視頻了
單片機(jī)源程序如下:
#include <stdio.h>
#include "LED_Driver.h"
#include "Hot_Senser.h"
#include "SysTick_Driver.h"
#include "Usart_Driver.h"
#include "TIM2_Driver.h"
#include "Key.h"
#include "Pin_Run.h"
#include "Pwm_Car.h"
//延時(shí)函數(shù)
//void delay_xx(uint16_t ms)
//{
//
// uint32_t i, j;
// for(i = 0; i < 0XFFF;i++)
// {
// for(j = 0; j < ms;j++);
// }
//}
int main(void)
{
//uint8_t ret;
LED_Init();
Hot_Sensor_Init();
SysTick_Init(72);
NVIC_USART1_Init();
USARTx_Init( USART1, 9600);
USARTx_Init( USART3, 9600);
Key_Init();
Pin_Run_Init();
// NVIC_TIM2_Init();
TIM2_Init();
PWM_Smart_Init();
while(1)
{
// printf("i give you money, give u 100 w\n");
// printf("Li cheng want to need to mei girl\n");
//
// Usartx_PutStr( USART1, "i give you a zuo shamo de luzhou \n");
// LED_Ctl( LED_ON);
Pin_Run_Ctr();
// LED_Ctl( LED_OFF);
// delay_ms(1000);
////阻塞函數(shù),有數(shù)據(jù)來(lái)才會(huì)往下運(yùn)行,不然停止在這里
// ret = USART_ReceiveData( USART1);
// if(ret == '1')
// {
// USART_SendData( USART1, 'h');
// delay_ms(10);
// USART_SendData( USART1, 'e');
// delay_ms(10);
// USART_SendData( USART1, 'l');
// delay_ms(10);
// USART_SendData( USART1, 'l');
// delay_ms(10);
// USART_SendData( USART1, 'o');
//
// printf("hello \n");
// }
//
// if(ret == '2')
// {
// LED_Ctl( LED_ON);
// }
// //讀取相應(yīng)引腳,判斷外設(shè)是否工作
// if(GPIO_ReadInputDataBit(GPIOA , GPIO_Pin_8) == SET)
// {
// printf("狼來(lái)了\n");
// }else{
// printf("下課了\n");
// }
}
}
復(fù)制代碼
所有資料51hei提供下載:
stm32最終.rar
(358.62 KB, 下載次數(shù): 17)
2018-11-8 23:40 上傳
點(diǎn)擊文件名下載附件
造福大眾
下載積分: 黑幣 -5
作者:
火火的菜鳥(niǎo)
時(shí)間:
2018-11-9 23:40
有工程,可以直接燒代碼就可以讓小車(chē)動(dòng)了,藍(lán)牙控制
歡迎光臨 (http://m.raoushi.com/bbs/)
Powered by Discuz! X3.1