improved the calibrated movement example

This commit is contained in:
hhaupt
2024-05-12 23:25:08 +02:00
parent e03bde591d
commit 8fb1ab7651
2 changed files with 43 additions and 63 deletions

View File

@@ -15,7 +15,13 @@ void MotionDetection::begin(void){
handler->transfer(0x1F);
handler->transfer(0x0F);
//busy Wait for startup
delayMicroseconds(200);
delayMicroseconds(250);
//set Gyroconfig
handler->transfer(0x20);
handler->transfer(0x25);
//set Gyro Filter
handler->transfer(0x23);
handler->transfer(0x37);
digitalWrite(34,HIGH);
handler->endTransaction();
};