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

@ -11,9 +11,9 @@ dezibot.multiColorLight.turnOffLed();
void loop() {
// put your main code here, to run repeatedly:
if(dezibot.motionDetection.isShaken(1000,zAxis)){
if(dezibot.motion.detection.isShaken(1000,zAxis)){
dezibot.multiColorLight.setTopLeds(0xFF0000);
} else if(dezibot.motionDetection.isShaken(1000,xAxis|yAxis)) {
} else if(dezibot.motion.detection.isShaken(1000,xAxis|yAxis)) {
dezibot.multiColorLight.setTopLeds(0x00FF00);
}
}