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