登录
首页 » 嵌入式系统 » 对传感器MPU6050进行调试设置参数(硬件IIC)

对传感器MPU6050进行调试设置参数(硬件IIC)

于 2022-01-28 发布 文件大小:294.78 kB
0 195
下载积分: 2 下载次数: 1

代码说明:

 #include "stm32f10x.h"#include "I2C_MPU6050.h"#include "usart1.h"#include "delay.h"int main(void){   InitMPU6050();/***********************************************************************/while(1){printf(" ---------------%d ",GetData(ACCEL_XOUT_H));printf(" ----------------%d ",GetData(ACCEL_YOUT_H)); printf(" ------------------%d ",GetData(ACCEL_ZOUT_H)); printf(" ---------------%d ",GetData(GYRO_XOUT_H)); printf(" -----------------%d ",GetData(GYRO_YOUT_H)); printf(" ---------Í---------%d ",GetData(GYRO_ZOUT_H));delay_ms(500);}  }/******************* (C) COPYRIGHT 2012 WildFire Team *****END OF FILE************/

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

发表评论

0 个回复

  • Smart Card Reader Interfacing with 8051 and small application.
    Smart Card Reader Interfacing with 8051 and small application.
    2022-04-12 18:57:47下载
    积分:1
  • TI msp430系列单片机源码,官方例程,包括C语言和汇编,可靠可运行。...
    TI msp430系列单片机源码,官方例程,包括C语言和汇编,可靠可运行。-TI msp430 MCUs source, the official routines, including the C language and assembler, reliable to run.
    2022-03-22 05:13:57下载
    积分:1
  • ADUC _7061 code
    这个程序由aduc7061库文件的源代码组成,用于在keil中编译编译器。这个AD是一种24位的sigma-delta模数转换器,由于其精度高,可用于称重设备、医疗器械等。
    2022-01-23 10:31:18下载
    积分:1
  • 点阵液晶12232驱动
    点阵液晶12232驱动-dot-matrix LCD driver 12232
    2022-06-17 04:37:00下载
    积分:1
  • PCI7200 drive exe
    研华PCI7200数据采集卡驱动程序,此采集卡含有FIFO,可以进行10M速率传输,性价比很高-PCI7200 drive exe
    2023-08-25 16:40:08下载
    积分:1
  • DS1302时钟芯片驱动程序,C语言源代码。
    DS1302时钟芯片驱动程序,C语言源代码。--Driver for DS1302 clock chip. It is written in C.
    2022-06-19 23:13:43下载
    积分:1
  • 2输入5键盘,模拟量数码管显示
    2 i o 5 键 盘 模 拟 音 量 数 码 管 显 示 -2 io 5 keyboard, analog volume digital tube display
    2022-02-04 14:06:15下载
    积分:1
  • 在PXA270主板上,配置完基本的GPIO后,可以用本程序读写CF卡来测试CF插槽的硬件连线...
    在PXA270主板上,配置完基本的GPIO后,可以用本程序读写CF卡来测试CF插槽的硬件连线-The motherboard in PXA270, finished basic GPIO configuration, you can use this program to read and write CF slot CF card to test the hardware connection
    2022-08-05 09:29:25下载
    积分:1
  • 通过对计算机的组织与结构的分析,综合运用所学计算机原理知识,设计并实现较为完整的计算机,即模型机。它可以完成一般计算机的最基础功能,具备16条基本指令,以及4种
    通过对计算机的组织与结构的分析,综合运用所学计算机原理知识,设计并实现较为完整的计算机,即模型机。它可以完成一般计算机的最基础功能,具备16条基本指令,以及4种寻址方式等。并且,计算机数据通路的控制将由微程序控制器来完成,CPU从内存中取出一条机器指令到指令执行结束的一个指令周期全部由微指令组成的序列来完成,即一条机器指令对应一个微程序。设计过程包括四个部分:㈠模型机硬件组成分析;㈡指令系统设计;㈢微程序设计;㈣上机实现,示范程序。- Through to the computer organization and the structure analysis, the synthesis utilization studies the computer principle knowledge, designs and realizes a more complete computer, namely molding machine. It may complete the common computer the most foundation function, has 16 elementary instructions, as well as 4 addressing ways and so on. And, the computer data path control will complete by the microprogram controller, CPU will take out a machine instruction from the memory a instruction cycle which finished to the instruction execution completely the sequence which will be composed by the microcode to complete, namely a machine instruction will correspond a microprogram. Design process including four parts: (1) Molding machine hardware composition analysis;
    2023-05-19 08:35:03下载
    积分:1
  • SOCKET 编程
    包含2份代码:1、阻塞式的2、采用select可以处理多用户
    2023-05-29 05:35:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载