From b8474815c0b4a1a54622c5f8ea862672c822e778 Mon Sep 17 00:00:00 2001 From: 99cardz Date: Tue, 6 Feb 2024 13:33:56 +0100 Subject: [PATCH] add example sketch --- example/motion.ino | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 example/motion.ino diff --git a/example/motion.ino b/example/motion.ino new file mode 100644 index 0000000..2bdfd47 --- /dev/null +++ b/example/motion.ino @@ -0,0 +1,18 @@ +#include +Dezibot dezibot = Dezibot(); +void setup() { + dezibot.begin(); + Serial.begin(9600); +} +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); +} \ No newline at end of file