25 lines
331 B
C++
25 lines
331 B
C++
#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());
|
|
|
|
|
|
}
|