echo//TIM4_CH2(PB7)->trigGPIO_InitTypeDefGPIO_InitStructure;EXTI_InitTypeDefEXTI_InitStructure;//NVIC_InitTypeDefNVIC_InitStructure;RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB,ENABLE);GPIO_InitStructure.GPIO_Pin=GPIO_Pin_7;GPIO_InitStructure.GPIO_Speed=GPIO_Speed_50MHz;GPIO_InitStructure.GPIO_Mode=GPIO_Mode_Out_PP;GPIO_Init(GPIOB,&GPIO_InitStructure);GPIO_InitStructure.GPIO_Pin=GPIO_Pin_6;GP-IMDN开发者社群-imdn.cn"> echo//TIM4_CH2(PB7)->trigGPIO_InitTypeDefGPIO_InitStructure;EXTI_InitTypeDefEXTI_InitStructure;//NVIC_InitTypeDefNVIC_InitStructure;RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB,ENABLE);GPIO_InitStructure.GPIO_Pin=GPIO_Pin_7;GPIO_InitStructure.GPIO_Speed=GPIO_Speed_50MHz;GPIO_InitStructure.GPIO_Mode=GPIO_Mode_Out_PP;GPIO_Init(GPIOB,&GPIO_InitStructure);GPIO_InitStructure.GPIO_Pin=GPIO_Pin_6;GP - IMDN开发者社群-imdn.cn">
登录
首页 » c » 光流,超声波

光流,超声波

于 2022-01-25 发布 文件大小:4.62 MB
0 229
下载积分: 2 下载次数: 1

代码说明:

可以给做电赛的朋友 #include "includes.h" /********************************* 使用外部中断和systik定时器来做超声波部分 警告:超声波使用systick时,其他设备不允许使用systick ***********************************/ unsigned char ultrasonic_systick = 0;//等于0时,超声波没有使用SYSTICK unsigned char ultrasonic_ok = 0; unsigned int ultrasonic_Data; float ultrasonic_Hight; //此部分初始化外部中断以及各部分用到的引脚 void ultrasonic_Init(void) { //使用TIM4_CH1,TIM4_CH2用于超声波引脚 //TIM4_CH1(PB6) -> echo //TIM4_CH2(PB7) -> trig GPIO_InitTypeDef GPIO_InitStructure; EXTI_InitTypeDef EXTI_InitStructure; // NVIC_InitTypeDef NVIC_InitStructure; RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB ,ENABLE); GPIO_InitStructure.GPIO_Pin=GPIO_Pin_7; GPIO_InitStructure.GPIO_Speed=GPIO_Speed_50MHz; GPIO_InitStructure.GPIO_Mode=GPIO_Mode_Out_PP; GPIO_Init(GPIOB,&GPIO_InitStructure); GPIO_InitStructure.GPIO_Pin=GPIO_Pin_6; GP

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • RGB
    这是一个画板程序的一部分,教你如何调制颜色!(This is a drawing board as part of the program, teach you how to modulated color!)
    2011-09-13 11:16:21下载
    积分:1
  • CBuilder_Book
    珍藏的C++Builder 电子书,从中受益很多(Book of C++Builder )
    2009-09-15 14:51:08下载
    积分:1
  • 基于误差扩散和动态阈值实现图像二值化
    通过对读入的彩色图像进行计算,得到最适应的阈值,然后使用自定义的误差扩散模板,对图像进行二值化处理。
    2022-02-04 06:45:02下载
    积分:1
  • 0305010411
    随着社会发展的不断进步,民航事业的壮大,人们消费水平的提高,乘坐民航的消费着也越来越多。预定查询系统因此在各机票预定网点中的作用也越显重要,因此,开发一套实时机票预定系统更现紧迫。机票预定系统应克服存储乘客信息少,查询效率低下等问题外,更重要的是其安全性,可靠性,这关系到航班和乘客的安全及准确,本系统因面向广大机票预定网点。重点是销售系统中的方便快捷。(with social development progresses, the growth of civil aviation, people raise the level of consumption. CAD ride to the consumer more and more. Scheduled inquiry system in booking tickets for the networks is the role of the more important, therefore, development of a real-time ticket reservation systems are more pressing. Ticket reservation systems storage passengers should overcome the scarcity of information, inquiries inefficient issues, even more important is their safety, reliability, the relationship of flights and passenger safety and accuracy, the system for booking tickets for the large-oriented networks. Focus on the marketing system convenient and quick.)
    2007-03-21 21:32:56下载
    积分:1
  • This a project that helps in probing about system resources while a function is...
    This a project that helps in probing about system resources while a function is executed.-This is a project that helps in probing about system resources while a function is executed.
    2022-03-17 21:41:33下载
    积分:1
  • 五子棋c语言代码
    自己用c语言写的五子棋 ,望大神多多指教!
    2023-02-10 21:10:03下载
    积分:1
  • qt小项目
    从我学习QT以来,遇到了不少问题。这是我在开始学习QT的时候,根据网页上提供的代码编写的一个QT小项目,上传来大家看看,不过,我主要的目的是获取积分,因为我还要继续学习QT,需要从此网站上下载源代码!谢谢!!!
    2022-02-12 06:07:17下载
    积分:1
  • C#网络应用编程基础第4章 UDP应用编程
    C#网络应用编程基础第4章 UDP应用编程-C# Web application programming based on Chapter 4 UDP application programming
    2023-02-11 17:30:03下载
    积分:1
  • RLS
    rls算法在盲多用户检测中的应用,输出能量误差的测量。(rls algorithm in blind multiuser detection, the output energy of the error measurements.)
    2009-11-15 16:38:00下载
    积分:1
  • insertion_sort
    Program to carry out insertion sort in C
    2014-10-05 05:53:26下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载