24 lines
470 B
C++
24 lines
470 B
C++
#include "SensorManager.h"
|
|
|
|
SensorManager sensorManager;
|
|
|
|
void setup() {
|
|
Wire.setClockStretchLimit(150000L); // Default stretch limit 150mS
|
|
Serial.begin(9600);
|
|
Serial.println("startup");
|
|
delay(10000);
|
|
sensorManager.sensorSetup();
|
|
|
|
}
|
|
|
|
void loop() {
|
|
SensorManager::Rotation rotation = sensorManager.readLoop();
|
|
|
|
Serial.print(rotation.x);
|
|
Serial.print(" ");
|
|
Serial.print(rotation.y);
|
|
Serial.print(" ");
|
|
Serial.print(rotation.z);
|
|
|
|
Serial.println();
|
|
} |