   webPage += "<p>Relay #8 ";
   webPage += "<a href=\"relay8On\"><button>ON</button></a>&nbsp;";
   webPage += "<a href=\"relay8Off\"><button>OFF</button></a></p>";
- */
+
   Serial.begin(115200); //start UART seral communication at 115200 baud
   delay(100);
  

const char* password = "haxor1337";       //wifi password

//PIN DEFINITIONS
const int k1Pin = D0;  //ESP-12E D1 RELAYS 1-8
const int k2Pin = D1;  //ESP-12E D2
const int k3Pin = D2;  //ESP-12E D4
const int k4Pin = D4; //ESP-12E D6
const int k5Pin = D6; //ESP-12E D7
const int k6Pin = D7; //ESP-12E D8
//const int k7Pin = 0;  //ESP-12E D3
//const int k8Pin = 14; //ESP-12E D5
//Wire SDA on OLED to D3 (GPIO0) pin on ESP-12E (used for SSD1306 OLED)
//Wire SCL on OLED to D5 (GPIO14) pin on ESP-12E (used for SSD1306 OLED)

int relayState = 0;

 //SETUP-----------------------------------------------------------------------------------
void setup() {

  display.init(); //SSD12306 init
  
  display.flipScreenVertically(); //SSD12306
  display.setFont(ArialMT_Plain_10); //SSD12306 set font
  
  pinMode(k1Pin, OUTPUT);  // set relay pins as outputs
  pinMode(k2Pin, OUTPUT);  //
  pinMode(k3Pin, OUTPUT);  //
  pinMode(k4Pin, OUTPUT);  //
  pinMode(k5Pin, OUTPUT);  //
  pinMode(k6Pin, OUTPUT);  //
  //pinMode(k7Pin, OUTPUT);  //
  //pinMode(k8Pin, OUTPUT);  //

  digitalWrite(k1Pin, HIGH); // ensure that each pin defaults to HIGH (relay off)
  digitalWrite(k2Pin, HIGH); // these cheap blue relay modules use inverted logic 
  digitalWrite(k3Pin, HIGH);
  digitalWrite(k4Pin, HIGH);
  digitalWrite(k5Pin, HIGH);
  digitalWrite(k6Pin, HIGH);
  //digitalWrite(k7Pin, HIGH);
  //digitalWrite(k8Pin, HIGH);

//Webpage Heading
  webPage += "<h1>ASC - Alexa Sprinkler Controller</h1>";

  server.on("/relay1On", [](){
    server.send(200, "text/html", webPage);
    // Turn on RELAY
    mcp.digitalWrite(0, LOW);
    Serial.println("RELAY 1 ON");
    delay(500);
  });
  server.on("/relay1Off", [](){
    server.send(200, "text/html", webPage);
    //Turn off RELAY
    mcp.digitalWrite(0, HIGH);;
    Serial.println("RELAY 1 OFF");
    delay(500); 
  });
