function gyro
This commit is contained in:
parent
0dc63bef0c
commit
9045eab22b
|
|
@ -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());
|
||||
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue