//³õʼ»¯LSM6DSLµÄIO¿ÚvoidLSM6DSL_Init(void){ uint8_tDevice_ID;GPIO_InitTypeDef GPIO_InitStructure;RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOG,ENABLE);//ʹÄÜGPIOGʱÖÓ//GPIOI7ÍÆÍìÊä³ö GPIO_InitStructure.GPIO_Pin=GPIO_Pin_7; GPIO_InitStructure.GPIO_Mode=GPIO_Mode_OUT;//ÆÕͨÊä³öģʽ GPIO_InitStructure.GPIO_OType=GPIO_OType_PP;//ÍÆÍìÊä³ö GPIO_InitStructure.GPIO_Speed=GPIO_Speed_100MHz;//100MHz GPIO_InitStructure.GPIO_PuPd=GPIO_PuPd_UP; GPIO_Init(GPIOG,&GPIO_InitStructure);//³õʼ»¯PG7 LSM6DSL_SPI_Init();-IMDN开发者社群-imdn.cn"> //³õʼ»¯LSM6DSLµÄIO¿ÚvoidLSM6DSL_Init(void){ uint8_tDevice_ID;GPIO_InitTypeDef GPIO_InitStructure;RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOG,ENABLE);//ʹÄÜGPIOGʱÖÓ//GPIOI7ÍÆÍìÊä³ö GPIO_InitStructure.GPIO_Pin=GPIO_Pin_7; GPIO_InitStructure.GPIO_Mode=GPIO_Mode_OUT;//ÆÕͨÊä³öģʽ GPIO_InitStructure.GPIO_OType=GPIO_OType_PP;//ÍÆÍìÊä³ö GPIO_InitStructure.GPIO_Speed=GPIO_Speed_100MHz;//100MHz GPIO_InitStructure.GPIO_PuPd=GPIO_PuPd_UP; GPIO_Init(GPIOG,&GPIO_InitStructure);//³õʼ»¯PG7 LSM6DSL_SPI_Init(); - IMDN开发者社群-imdn.cn">
登录
首页 » c » lsm6dsl

lsm6dsl

于 2022-02-16 发布 文件大小:5.99 MB
0 104
下载积分: 2 下载次数: 1

代码说明:

lsm6dsl基于stm32f407的开发,详细代码, /* Includes ------------------------------------------------------------------*/ #include "lsm6dsl.h" #include "spi.h" #include "usart.h" #include "delay.h" #include //³õʼ»¯LSM6DSLµÄIO¿Ú void LSM6DSL_Init(void) {   uint8_t Device_ID; GPIO_InitTypeDef  GPIO_InitStructure; RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOG, ENABLE);//ʹÄÜGPIOGʱÖÓ //GPIOI7ÍÆÍìÊä³ö   GPIO_InitStructure.GPIO_Pin = GPIO_Pin_7;   GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;//ÆÕͨÊä³öģʽ   GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;//ÍÆÍìÊä³ö   GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;//100MHz   GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;   GPIO_Init(GPIOG, &GPIO_InitStructure);//³õʼ»¯PG7   LSM6DSL_SPI_Init();

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

发表评论

0 个回复

  • STM32 硬件SPI_中文显示测试源码
    说明:  基于STM32F103的ST7735s芯片的LCD中文显示例程(LCD Chinese Display Routine Based on ST7735s Chip ST32F103)
    2020-11-16 15:29:39下载
    积分:1
  • 叶孤城-iOS进阶
    这是一本ios进阶的书籍,希望对大家有所帮助(This is an advanced ios book, I hope it can help you)
    2020-10-11 18:27:33下载
    积分:1
  • ExocortexDSP_v1.2
    A C# open source library that provides fully featured (1) single and double precision complex number data types, (2) complex number math library, (3) 1D, 2D and 3D complex and real symmetric fast Fourier transforms, and (4) highly accurate statistical routines.
    2008-02-20 12:32:03下载
    积分:1
  • opencv实现人脸检测
    通过训练分类器实现人脸识别。代码用opencv完成,效果可见。输入几张照片用于训练。
    2022-03-24 10:46:04下载
    积分:1
  • 12306订票助手源码
    可以自动识别验证码,车票信息查询,车辆类型筛选, 出发地识别拼英简称,实现每5秒自动查询。车票预定的功能。 基本功能于网站的功能相同。 注意:     开发环境为Visual Studio 2010
    2022-04-28 15:50:37下载
    积分:1
  • C#编写的俄罗斯方块
    C#编写的俄罗斯方块-C# prepared by the Russian ideographic
    2023-01-10 04:55:03下载
    积分:1
  • get_local_ip
    说明:  在linux系统利用C语言编写实现获取板卡本地ip地址的功能(The function of obtaining the local IP address of the board card is realized in the Linux system with C language)
    2020-01-06 09:34:23下载
    积分:1
  • normal
    fuzzy ahp,即模糊层次分析法的原始程序,该程序实现了输入模糊数输出相对权重的功能,可以被很好使用(fuzzy ahp, FAHP the original procedure, the program input output fuzzy numbers relative weighting function can be well used)
    2006-07-20 16:09:46下载
    积分:1
  • CT107D
    电子技能大赛CT107D配套程序,写得还算比较规范的,供大家参考(E-Skills Competition CT107D matching program)
    2013-12-20 14:33:02下载
    积分:1
  • C# 通用方法 项目源码下载(含人民币转换大小写类)
    C# 通用方法 项目源码下载(含人民币转换大小写类)
    2015-02-06下载
    积分:1
  • 696516资源总数
  • 106446会员总数
  • 9今日下载