GD32F130通过I2C读取LIS3DH三轴数据再转成角度数据完整工程.zip

上传者: 40615943 | 上传时间: 2021-04-26 09:36:50 | 文件大小: 343KB | 文件类型: ZIP
GD32F130通过I2C读取LIS3DH三轴数据再转成角度数据完整工程 完整工程,下载下来用KEIL5就能打开工程直接编译 初始化串口 初始化I2C接口 先初始化LIS3DH三轴传感器 开启看门狗 在主循环喂狗 读取三轴原始数据 把三轴原始数据转换成俯仰角度+-180°和横滚角+-180° 串口打印读取的三轴数据及角度 延时1S

文件下载

资源详情

[{"title":"( 89 个子文件 343KB ) GD32F130通过I2C读取LIS3DH三轴数据再转成角度数据完整工程.zip","children":[{"title":"CarPoleLED","children":[{"title":"Version","children":null,"spread":false},{"title":"HexBin","children":[{"title":"CarPoleLED.bin <span style='color:#111;'> 8.31KB </span>","children":null,"spread":false},{"title":"CarPoleLED.text <span style='color:#111;'> 216.47KB </span>","children":null,"spread":false},{"title":"CarPoleLED.hex <span style='color:#111;'> 23.42KB </span>","children":null,"spread":false}],"spread":true},{"title":"Code","children":[{"title":"SysApp","children":[{"title":"wdg.h <span style='color:#111;'> 314B </span>","children":null,"spread":false},{"title":"led.h <span style='color:#111;'> 507B </span>","children":null,"spread":false},{"title":"lis3dh.h <span style='color:#111;'> 19.54KB </span>","children":null,"spread":false},{"title":"iic.c <span style='color:#111;'> 5.36KB </span>","children":null,"spread":false},{"title":"led.c <span style='color:#111;'> 659B </span>","children":null,"spread":false},{"title":"lis3dh.c <span style='color:#111;'> 56.66KB </span>","children":null,"spread":false},{"title":"wdg.c <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"iic.h <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false}],"spread":true},{"title":"SysBsp","children":[{"title":"main.h <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"gd32f1x0_it.h <span style='color:#111;'> 1.00KB </span>","children":null,"spread":false},{"title":"system_gd32f1x0.h <span style='color:#111;'> 2.37KB </span>","children":null,"spread":false},{"title":"gd32f1x0_libopt.h <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"system_gd32f1x0.c <span style='color:#111;'> 10.89KB </span>","children":null,"spread":false},{"title":"core_cmInstr.h <span style='color:#111;'> 20.03KB </span>","children":null,"spread":false},{"title":"core_cm3.h <span style='color:#111;'> 98.05KB </span>","children":null,"spread":false},{"title":"gd32f1x0_it.c <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"gd32f1x0.h <span style='color:#111;'> 14.91KB </span>","children":null,"spread":false},{"title":"startup_gd32f1x0.s <span style='color:#111;'> 14.32KB </span>","children":null,"spread":false},{"title":"main.c <span style='color:#111;'> 973B </span>","children":null,"spread":false},{"title":"core_cmFunc.h <span style='color:#111;'> 16.74KB </span>","children":null,"spread":false}],"spread":false},{"title":"DevDriver","children":[{"title":"systick.c <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"usart.c <span style='color:#111;'> 3.78KB </span>","children":null,"spread":false},{"title":"systick.h <span style='color:#111;'> 299B </span>","children":null,"spread":false},{"title":"usart.h <span style='color:#111;'> 814B </span>","children":null,"spread":false},{"title":"StdPeriph_Driver","children":[{"title":"Include","children":[{"title":"gd32f1x0_dac.h <span style='color:#111;'> 10.73KB </span>","children":null,"spread":false},{"title":"gd32f1x0_gpio.h <span style='color:#111;'> 25.01KB </span>","children":null,"spread":false},{"title":"gd32f1x0_cmp.h <span style='color:#111;'> 13.69KB </span>","children":null,"spread":false},{"title":"gd32f1x0_syscfg.h <span style='color:#111;'> 12.15KB </span>","children":null,"spread":false},{"title":"gd32f1x0_rtc.h <span style='color:#111;'> 43.94KB </span>","children":null,"spread":false},{"title":"gd32f1x0_spi.h <span style='color:#111;'> 21.24KB </span>","children":null,"spread":false},{"title":"gd32f1x0_fmc.h <span style='color:#111;'> 12.25KB </span>","children":null,"spread":false},{"title":"gd32f1x0_wwdgt.h <span style='color:#111;'> 3.14KB </span>","children":null,"spread":false},{"title":"gd32f1x0_opa.h <span style='color:#111;'> 7.95KB </span>","children":null,"spread":false},{"title":"gd32f1x0_timer.h <span style='color:#111;'> 54.83KB </span>","children":null,"spread":false},{"title":"gd32f1x0_rcu.h <span style='color:#111;'> 64.82KB </span>","children":null,"spread":false},{"title":"gd32f1x0_misc.h <span style='color:#111;'> 3.17KB </span>","children":null,"spread":false},{"title":"gd32f1x0_dma.h <span style='color:#111;'> 16.20KB </span>","children":null,"spread":false},{"title":"gd32f1x0_exti.h <span style='color:#111;'> 19.07KB </span>","children":null,"spread":false},{"title":"gd32f1x0_slcd.h <span style='color:#111;'> 17.49KB </span>","children":null,"spread":false},{"title":"gd32f1x0_adc.h <span style='color:#111;'> 22.93KB </span>","children":null,"spread":false},{"title":"gd32f1x0_crc.h <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false},{"title":"gd32f1x0_can.h <span style='color:#111;'> 48.52KB </span>","children":null,"spread":false},{"title":"gd32f1x0_pmu.h <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"gd32f1x0_usart.h <span style='color:#111;'> 33.53KB </span>","children":null,"spread":false},{"title":"gd32f1x0_i2c.h <span style='color:#111;'> 21.58KB </span>","children":null,"spread":false},{"title":"gd32f1x0_fwdgt.h <span style='color:#111;'> 5.10KB </span>","children":null,"spread":false},{"title":"gd32f1x0_cec.h <span style='color:#111;'> 15.23KB </span>","children":null,"spread":false},{"title":"gd32f1x0_tsi.h <span style='color:#111;'> 23.64KB </span>","children":null,"spread":false},{"title":"gd32f1x0_ivref.h <span style='color:#111;'> 15.68KB </span>","children":null,"spread":false},{"title":"gd32f1x0_dbg.h <span style='color:#111;'> 6.22KB </span>","children":null,"spread":false}],"spread":false},{"title":"Source","children":[{"title":"gd32f1x0_syscfg.c <span style='color:#111;'> 7.05KB </span>","children":null,"spread":false},{"title":"gd32f1x0_i2c.c <span style='color:#111;'> 24.94KB </span>","children":null,"spread":false},{"title":"gd32f1x0_crc.c <span style='color:#111;'> 3.72KB </span>","children":null,"spread":false},{"title":"gd32f1x0_wwdgt.c <span style='color:#111;'> 3.12KB </span>","children":null,"spread":false},{"title":"gd32f1x0_slcd.c <span style='color:#111;'> 13.71KB </span>","children":null,"spread":false},{"title":"gd32f1x0_dbg.c <span style='color:#111;'> 3.71KB </span>","children":null,"spread":false},{"title":"gd32f1x0_ivref.c <span style='color:#111;'> 3.84KB </span>","children":null,"spread":false},{"title":"gd32f1x0_spi.c <span style='color:#111;'> 20.75KB </span>","children":null,"spread":false},{"title":"gd32f1x0_cec.c <span style='color:#111;'> 15.32KB </span>","children":null,"spread":false},{"title":"gd32f1x0_exti.c <span style='color:#111;'> 8.73KB </span>","children":null,"spread":false},{"title":"gd32f1x0_usart.c <span style='color:#111;'> 36.22KB </span>","children":null,"spread":false},{"title":"gd32f1x0_fwdgt.c <span style='color:#111;'> 3.97KB </span>","children":null,"spread":false},{"title":"gd32f1x0_timer.c <span style='color:#111;'> 75.13KB </span>","children":null,"spread":false},{"title":"gd32f1x0_misc.c <span style='color:#111;'> 5.52KB </span>","children":null,"spread":false},{"title":"gd32f1x0_pmu.c <span style='color:#111;'> 6.70KB </span>","children":null,"spread":false},{"title":"gd32f1x0_fmc.c <span style='color:#111;'> 17.27KB </span>","children":null,"spread":false},{"title":"gd32f1x0_rtc.c <span style='color:#111;'> 33.53KB </span>","children":null,"spread":false},{"title":"gd32f1x0_tsi.c <span style='color:#111;'> 15.40KB </span>","children":null,"spread":false},{"title":"gd32f1x0_rcu.c <span style='color:#111;'> 41.96KB </span>","children":null,"spread":false},{"title":"gd32f1x0_opa.c <span style='color:#111;'> 10.68KB </span>","children":null,"spread":false},{"title":"gd32f1x0_adc.c <span style='color:#111;'> 26.29KB </span>","children":null,"spread":false},{"title":"gd32f1x0_can.c <span style='color:#111;'> 31.91KB </span>","children":null,"spread":false},{"title":"gd32f1x0_gpio.c <span style='color:#111;'> 10.04KB </span>","children":null,"spread":false},{"title":"gd32f1x0_dma.c <span style='color:#111;'> 16.42KB </span>","children":null,"spread":false},{"title":"gd32f1x0_cmp.c <span style='color:#111;'> 6.47KB </span>","children":null,"spread":false},{"title":"gd32f1x0_dac.c <span style='color:#111;'> 18.16KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"Si","children":null,"spread":false},{"title":"Keil","children":[{"title":"CarPoleLED.uvguix.WuKing <span style='color:#111;'> 174.75KB </span>","children":null,"spread":false},{"title":"Objects","children":[{"title":"CarPoleLED.bin <span style='color:#111;'> 8.31KB </span>","children":null,"spread":false},{"title":"CarPoleLED.text <span style='color:#111;'> 216.47KB </span>","children":null,"spread":false},{"title":"CarPoleLED.hex <span style='color:#111;'> 23.42KB </span>","children":null,"spread":false}],"spread":true},{"title":"EventRecorderStub.scvd <span style='color:#111;'> 339B </span>","children":null,"spread":false},{"title":"CarPoleLED.uvprojx <span style='color:#111;'> 22.81KB </span>","children":null,"spread":false},{"title":"CarPoleLED.uvoptx <span style='color:#111;'> 22.85KB </span>","children":null,"spread":false},{"title":"CarPoleLED.uvguix.Administrator <span style='color:#111;'> 136.37KB </span>","children":null,"spread":false},{"title":"Listings","children":null,"spread":false},{"title":"JLinkSettings.ini <span style='color:#111;'> 762B </span>","children":null,"spread":false},{"title":"MoveHexFile.bat <span style='color:#111;'> 488B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • freemote :
    是用的模拟i2c
    2021-09-28

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明