Cleanup
This commit is contained in:
11
libgy521.c
11
libgy521.c
@@ -1,4 +1,3 @@
|
||||
//#include <wiringPi.h>
|
||||
#include <wiringPiI2C.h>
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
@@ -6,9 +5,7 @@
|
||||
#include "libgy521.h"
|
||||
|
||||
//Constants
|
||||
|
||||
#define MPU6050_I2C_ADDRESS 0x68 //I2C
|
||||
|
||||
#define MPU6050_I2C_ADDRESS 0x68 //I2C
|
||||
#define GRAVITIY_MS2 9.80665
|
||||
|
||||
// Scale Modifiers
|
||||
@@ -95,12 +92,6 @@ int read_i2c_word_combined(int reg) {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
float getTemp(void) {
|
||||
/**
|
||||
|
Reference in New Issue
Block a user