Merge branch 'feature/#5-motion' into feature/#16-find-a-friend

This commit is contained in:
hhaupt
2024-04-28 22:41:44 +02:00
6 changed files with 78 additions and 55 deletions

20
example/motion/motion.ino Normal file
View File

@ -0,0 +1,20 @@
#include <Dezibot.h>
Dezibot dezibot = Dezibot();
void setup() {
dezibot.begin();
Serial.begin(115200);
}
void loop() {
Serial.println("bla");
dezibot.motion.move(1000);
dezibot.multiColorLight.setLed(BOTTOM, RED);
delay(2000);
dezibot.motion.rotateAnticlockwise(1000);
dezibot.multiColorLight.setLed(BOTTOM, GREEN);
delay(2000);
dezibot.motion.rotateClockwise(1000);
dezibot.multiColorLight.setLed(BOTTOM, BLUE);
delay(2000);
dezibot.multiColorLight.turnOffLed();
delay(2000);
}