function gyro

This commit is contained in:
Laure BEL 2024-03-11 10:45:13 +01:00
parent 0dc63bef0c
commit 9045eab22b
1 changed files with 24 additions and 0 deletions

24
gyro/gyro.ino Normal file
View File

@ -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());
}