Dezibot 4
empfaenger.ino
Go to the documentation of this file.
1 #include "Dezibot.h"
2 
3 
4 Dezibot dezibot = Dezibot();
5 
6 void receivedCallback(String &msg) {
7  if (msg == "vorn") {
8  dezibot.motion.move();
9  } else if (msg == "links") {
10  dezibot.motion.rotateAntiClockwise();
11  } else if (msg == "rechts") {
12  dezibot.motion.rotateClockwise();
13  } else if (msg == "stop") {
14  dezibot.motion.stop();
15  }
16 }
17 void setup() {
18  dezibot.begin();
19  dezibot.communication.begin();
20  dezibot.communication.setGroupNumber(5);
21  dezibot.communication.onReceive(&receivedCallback);
22 }
23 
24 void loop() {
25 }