Better defines in MPU header
This commit is contained in:
parent
44836847a1
commit
4907af5b5f
1 changed files with 11 additions and 11 deletions
16
MPU6050.h
16
MPU6050.h
|
@ -4,16 +4,16 @@
|
||||||
#define MPU6050_ADDR 0x68 // With AD0 pin grounded/floating, otherwise 0x69
|
#define MPU6050_ADDR 0x68 // With AD0 pin grounded/floating, otherwise 0x69
|
||||||
|
|
||||||
// MPU-6050 register addresses
|
// MPU-6050 register addresses
|
||||||
#define MPU6050_REG_ACCEL_XOUT_H 0x3B
|
#define MPU6050_REG_ACCEL_XOUT_H ((uint8_t *)0x3B)
|
||||||
#define MPU6050_REG_ACCEL_XOUT_L 0x3C
|
#define MPU6050_REG_ACCEL_XOUT_L ((uint8_t *)0x3C)
|
||||||
#define MPU6050_REG_GYRO_XOUT_H 0x43
|
#define MPU6050_REG_GYRO_XOUT_H ((uint8_t *)0x43)
|
||||||
#define MPU6050_REG_GYRO_XOUT_L 0x44
|
#define MPU6050_REG_GYRO_XOUT_L ((uint8_t *)0x44)
|
||||||
#define MPU6050_TEMP_OUT_H 0x41
|
#define MPU6050_TEMP_OUT_H ((uint8_t *)0x41)
|
||||||
#define MPU6050_TEMP_OUT_L 0x42
|
#define MPU6050_TEMP_OUT_L ((uint8_t *)0x42)
|
||||||
#define MPU6050_REG_PWR_MGMT_1 0x6B
|
#define MPU6050_REG_PWR_MGMT_1 ((uint8_t *)0x6B)
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <avr/io.h>
|
#include <avr/io.h>
|
||||||
|
#include <stdint.h>
|
||||||
#include <util/delay.h>
|
#include <util/delay.h>
|
||||||
|
|
||||||
// Function to initialize MPU-6050
|
// Function to initialize MPU-6050
|
||||||
|
|
Loading…
Reference in a new issue