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 239
下载积分: 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 个回复

  • PhotoCut
    基于OpenCV实现的图像剪切,截取小软件,对学习OpenCV的朋友比较有帮助(OpenCV based on the realization of the image shear, the interception of a small software, to learning more OpenCV friends help)
    2020-11-17 15:19:41下载
    积分:1
  • des
    实现对单文件的DES加密解密,不限制大小,DES加密部分自写,非调用,用于学习DES原理。(The realization of the single document DES encryption and decryption, no limit to the size, DES encryption part self written, non call, for learning DES principle.)
    2014-10-29 10:14:19下载
    积分:1
  • DICOM wen文件读取
    DICOM wen文件读取,新手参考学DICOM wen文件读取,新手参考学习DICOM wen文件读取,新手参考学习DICOM wen文件读取,新手参考学习DICOM wen文件读取,新手参考学习DICOM wen文件读取,新手参考学习DICOM wen文件读取,新手参考学习习
    2022-07-27 15:04:38下载
    积分:1
  • PIC
    程序均用matlab编写 ch ex 的文件是信号与系统频谱密度函数或者时移特性的展示 Advanced_Mathematica_picture_zoom是利用二次线性内插值法对彩色图片进行任意倍数的放大 每个程序都含有详细的注释(Programs are written in matlab chex file is spectrum density of signal and system function or moving features of the display Advanced_Mathematica_picture_zoom using quadratic linear interpolation method in arbitrary multiple amplification was carried out on the color images Every program contains detailed annotations)
    2014-09-10 20:40:49下载
    积分:1
  • Huffman coding source! Ah good things like what are you learning good data compr...
    哈夫曼编码源程序!好东西啊 喜欢的话 下吧 对学习数据压缩有好处-Huffman coding source! Ah good things like what are you learning good data compression
    2022-02-07 18:47:40下载
    积分:1
  • omapbios.rar码,对开发者很有用
    omapbios.rar码,对开发者很有用-omapbios.rar code to developers useful
    2022-01-25 18:05:06下载
    积分:1
  • Matlab-CPP
    Matlab C++数学库对元组阵列的操作(======================================================================== CONSOLE APPLICATION : cellArrayCreate ======================================================================== AppWizard has created this cellArrayCreate application for you. This file contains a summary of what you will find in each of the files that make up your cellArrayCreate application. cellArrayCreate.dsp This file (the project file) contains information at the project level and is used to build a single project or subproject. Other users can share the project (.dsp) file, but they should export the makefiles locally. cellArrayCreate.cpp This is the main application source file. ///////////////////////////////////////////////////////////////////////////// Other standard files: StdAfx.h, StdAfx.cpp These files are used to build a precompiled header (PCH) file named cellArrayCreate.pch and a precompiled types file named StdAfx.obj. ////////)
    2011-05-06 13:30:03下载
    积分:1
  • Snakegamecode.rar
    使用ucosii操作系统对arm7微处理器进行贪吃蛇游戏开发。(Ucosii operating system used on the ARM7 microprocessor Snake game development.)
    2009-01-06 21:50:46下载
    积分:1
  • pinghuachuli
    平滑处理是信号分析的预处理方法之一,本程序采用5点滑动平均法对信号进行平滑处理(Smooth processing is one of the pretreatment method of signal analysis, this program uses the 5 moving average method to smooth signal.)
    2014-09-21 17:10:29下载
    积分:1
  • TFMINI+超声波+STM32F407开发板
    本程序针对无人机室内定高及避障,采用高精度超声波定高,TFMINI-PLUS激光雷达定位。通过串口一接受激光雷达数据,串口二接受超生波数据。然后将数据解码将两组数据通过串口三进行与飞控主芯片数据传输
    2022-05-16 04:19:50下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载