mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-07-04 17:51:41 +02:00
rename example.ino to IMU/Detection_Print
This commit is contained in:
20
example/IMU/Detection_Print/Detection_Print.ino
Normal file
20
example/IMU/Detection_Print/Detection_Print.ino
Normal file
@ -0,0 +1,20 @@
|
||||
#include "Dezibot.h"
|
||||
Dezibot dezibot;
|
||||
void setup() {
|
||||
|
||||
dezibot.begin();
|
||||
dezibot.motionDetection.begin();
|
||||
//dezibot.motionDetection.end();
|
||||
// put your setup code here, to run once:
|
||||
Serial.begin(115200);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
// put your main code here, to run repeatedly:
|
||||
|
||||
//Serial.println(dezibot.motionDetection.getTemperature());
|
||||
Serial.println(dezibot.motionDetection.getAcceleration().z);
|
||||
//Serial.println(dezibot.motionDetection.getRotation().x);
|
||||
Serial.println(dezibot.motionDetection.getWhoAmI());
|
||||
delay(5000);
|
||||
}
|
Reference in New Issue
Block a user