updated Motiondetection in examples
This commit is contained in:
1 parent
a0e6661b16
commit
b5fab21a47
4 files changed
+5
-5
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user