SHARE
TWEET

Untitled

a guest Apr 20th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void loop()
  2. {
  3.     client = server.available();
  4.     if (!client) return;
  5.     data = checkClient();
  6.     Serial.println(data);
  7.  
  8.     if (data == "forw")
  9.       rotateForward();
  10.     else if (data == "back")
  11.       rotateBackward();
  12.     else if (data == "lefo")
  13.       rotateLeftForward();
  14.     else if (data == "rifo")
  15.       rotateRightForward();
  16.     else if (data == "lebk")
  17.       rotateLeftBackward();
  18.     else if (data == "ribk")
  19.       rotateRightBackward();
  20.     else if (data == "stop")
  21.       stop();
  22.  
  23.     Serial.println("New loop");
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top