mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-07-04 17:51:41 +02:00
updated Motiondetection in examples
This commit is contained in:
@ -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