   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 //

  // Match the request
  int val = -1; // We'll use 'val' to keep track of both the
                // request type (read/set) and value if set.
  if (req.indexOf("/led/0") != -1)
    val = 0; // Will write LED low
  else if (req.indexOf("/led/1") != -1)
    val = 1; // Will write LED high
  else if (req.indexOf("/read") != -1)
    val = -2; // Will print pin reads
  // Otherwise request will be invalid. We'll say as much in HTML

  // Set GPIO5 according to the request
  if (val >= 0)
    digitalWrite(LED_PIN, val);

  client.flush();


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() 
