updated Motiondetection in examples

This commit is contained in:
Hans Haupt
2024-06-14 08:39:41 +02:00
parent a0e6661b16
commit b5fab21a47
4 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ void loop() {
int zvalue = 0;
for(int i = 0; i<30;i++){
zvalue += dezibot.motionDetection.getAcceleration().z;
zvalue += dezibot.motion.detection.getAcceleration().z;
}
zvalue = zvalue/30;
if(zvalue < -1700){