wire.begin
This commit is contained in:
		@@ -1,3 +1,5 @@
 | 
			
		||||
#include <Wire.h>
 | 
			
		||||
 | 
			
		||||
//temporary variable to measure main loops
 | 
			
		||||
int temp_loops;
 | 
			
		||||
 | 
			
		||||
@@ -60,6 +62,7 @@ unsigned long timeoldA;
 | 
			
		||||
unsigned long timeoldB;
 | 
			
		||||
 | 
			
		||||
void setup() {
 | 
			
		||||
  Wire.begin();
 | 
			
		||||
  Serial.begin(115200);
 | 
			
		||||
  while (!Serial)
 | 
			
		||||
    delay(10); // will pause Zero, Leonardo, etc until serial console opens
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,6 @@
 | 
			
		||||
//gyroscope stuff
 | 
			
		||||
#include <Adafruit_MPU6050.h>
 | 
			
		||||
#include <Adafruit_Sensor.h>
 | 
			
		||||
#include <Wire.h>
 | 
			
		||||
 | 
			
		||||
Adafruit_MPU6050 mpu;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user