implemented whoAmI for IMU

This commit is contained in:
hhau
2023-12-21 09:35:32 +01:00
parent ce5f00a848
commit 21f8dc65f1
4 changed files with 131 additions and 35 deletions

View File

@ -1,18 +1,21 @@
#include <Dezibot.h>
Dezibot dezibot = Dezibot();
const uint8_t MYFOO = 10;
#include "Dezibot.h"
Dezibot dezibot;
void setup() {
dezibot.begin();
dezibot.begin();
dezibot.motionDetection.begin();
//dezibot.motionDetection.end();
// put your setup code here, to run once:
Serial.begin(115200);
}
void loop() {
dezibot.multiColorLight.setLed(TOP_LEFT,0x000000FF);
dezibot.multiColorLight.setLed(TOP_RIGHT,dezibot.multiColorLight.color(0,100,0));
dezibot.multiColorLight.blink(10,0x00FF0000,BOTTOM,500);
delay(1000);
dezibot.multiColorLight.turnOff(ALL);
delay(1000);
// 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(5);
}