坦克循迹打靶

时间:2018-02-10 07:33:14
【文件属性】:
文件名称:坦克循迹打靶
文件大小:972KB
文件格式:RAR
更新时间:2018-02-10 07:33:14
坦克 循迹 打靶 #include #include #include #include #include #include"1602.h" #include"delay.h" unsigned char second=0; unsigned int T1C1_Val=4000; //设置初始pwm占空比 60000/10000 unsigned int T1C2_Val=4000; //设置初始pwm占空比60000/10000 char str[]="smart car"; u8 flag=0; u8 point=0; //炮击点 //位取反 void GPIO_PinReverse(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin)//GPIO_PinReverse(GPIOx, GPIO_Pin_) { /* Check the parameters */ assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); assert_param(IS_GPIO_PIN(GPIO_Pin)); GPIOx->ODR ^= GPIO_Pin; } void gpio_config() { GPIO_InitTypeDef GPIO_InitStructure;//定义GPIO的结构体 //Step1.开启TIM和相应端口时钟

网友评论