diff --git a/example/Fernbedienung/sender/sender.ino b/example/Fernbedienung/sender/sender.ino index f4ea091..5baf0d5 100644 --- a/example/Fernbedienung/sender/sender.ino +++ b/example/Fernbedienung/sender/sender.ino @@ -10,7 +10,7 @@ void setup() { } void loop() { - switch (dezibot.motionDetection.getTiltDirection()) { + switch (dezibot.motion.detection.getTiltDirection()) { case Front: dezibot.multiColorLight.setTopLeds(GREEN); dezibot.communication.sendMessage("vorn"); diff --git a/example/IMU/Shake_Detection/shake_detection/shake_detection.ino b/example/IMU/Shake_Detection/shake_detection/shake_detection.ino index 1050c9a..894100a 100644 --- a/example/IMU/Shake_Detection/shake_detection/shake_detection.ino +++ b/example/IMU/Shake_Detection/shake_detection/shake_detection.ino @@ -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); } } diff --git a/example/IMU/Tilt_Detection/tilt_detection/tilt_detection.ino b/example/IMU/Tilt_Detection/tilt_detection/tilt_detection.ino index c9de988..1a7229e 100644 --- a/example/IMU/Tilt_Detection/tilt_detection/tilt_detection.ino +++ b/example/IMU/Tilt_Detection/tilt_detection/tilt_detection.ino @@ -9,7 +9,7 @@ void setup() { } void loop() { - switch (dezibot.motionDetection.getTiltDirection()) { + switch (dezibot.motion.detection.getTiltDirection()) { case Front: dezibot.multiColorLight.setTopLeds(GREEN); break; diff --git a/example/IMU/Upside_Downside_Detection/Upside_Downside_Detection.ino b/example/IMU/Upside_Downside_Detection/Upside_Downside_Detection.ino index e1aa2aa..1ea986a 100644 --- a/example/IMU/Upside_Downside_Detection/Upside_Downside_Detection.ino +++ b/example/IMU/Upside_Downside_Detection/Upside_Downside_Detection.ino @@ -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){