dezibot/example/motion_indicating/motion_indicating.ino
2024-06-12 21:36:56 +02:00

23 lines
689 B
C++

#include <Dezibot.h>
Dezibot dezibot = Dezibot();
void setup() {
dezibot.begin();
<<<<<<< HEAD:example/motion_indicating/motion_indicating.ino
=======
Serial.begin(115200);
>>>>>>> remotes/origin/feature/#9-display:example/motion/motion.ino
}
void loop() {
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);
}