Created
January 24, 2019 18:34
-
-
Save lefuturiste/7e52c767b6d9c7f4e3ca927731f2e5ad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> | |
#include <Wire.h> | |
#include <SoftwareSerial.h> | |
#include <MeAuriga.h> | |
MeGyro gyro(0, 0x69); | |
void setup() { | |
Serial.begin(9600); | |
Serial.println("Start..."); | |
gyro.begin(); | |
delay(500); | |
} | |
void loop() { | |
gyro.update(); | |
Serial.println(gyro.getAngleZ()); | |
delay(100); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment