Added support for different sensor addresses

Fork of MPU6050 by wisnu pamungkas

Only the MPU6050 constructor was changed. MPU6050 was added as a class member instead of being #defined

Revision:
1:527a0db5f64b
Parent:
0:0e23b7f6dccd
--- a/MPU6050.cpp	Thu Feb 20 04:12:51 2014 +0000
+++ b/MPU6050.cpp	Wed May 13 21:19:07 2015 +0000
@@ -3,7 +3,8 @@
  */
 #include "MPU6050.h"
 
-MPU6050::MPU6050(PinName sda, PinName scl) : connection(sda, scl) {
+MPU6050::MPU6050(PinName sda, PinName scl,uint8_t address) : connection(sda, scl) {
+    this->MPU6050_ADDRESS = address;
     this->setSleepMode(false);
     
     //Initializations: