   by Scott Fitzgerald
  */
 #include <ESP8266WiFi.h>
+
+#define right_cw HIGH 
+#define right_ccw LOW
+#define left_cw LOW 
+#define left_ccw HIGH 
+
+#define motor_pwm_left D1
+#define motor_pwm_right D2
+
+#define motor_dir_left D3
+#define motor_dir_right D4
+
+int speed_left = 1000;
+int speed_right = 1000;
 
 //////////////////////
 // WiFi Definitions //

  s += "Content-Type: text/html\r\n\r\n";
  s += "<!DOCTYPE HTML>\r\n<html>\r\n";
  // If we're setting the LED, print out a message saying we did
  if (val >= 0)
  {
    s += "LED is now ";
    s += (val)?"on":"off";
  }
  else if (val == -2)
  { // If we're reading pins, print out those values:
    s += "Analog Pin = ";

const int ANALOG_PIN = A0; // The only analog pin on the Thing
const int DIGITAL_PIN = 12; // Digital pin to be read

//const int MOTOR_PWM_LEFT = D1; // Thing's onboard, green LED
//const int MOTOR_DIR_LEFT = D3; // Thing's onboard, green LED


WiFiServer server(80);

void setup() 
