mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-08-24 10:48:37 +02:00
improved the calibrated movement example
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
Reference in New Issue
Block a user