diff --git a/gyro/gyro.ino b/gyro/gyro.ino new file mode 100644 index 0000000..3b7290f --- /dev/null +++ b/gyro/gyro.ino @@ -0,0 +1,24 @@ +#include "Arduino.h" +#include "Wire.h" +#include "MeMCore.h" +#include "SoftwareSerial.h" + + + +MeGyro gyro; + +void setup() { + // put your setup code here, to run once: + Serial.begin(9600); + gyro.begin(); + + +} + +void loop() { + // put your main code here, to run repeatedly: + gyro.update(); + Serial.println(gyro.getAngleZ()); + + +}