 // -----------------------------------------------------------------------------
 // Wifi Control: code for dealing with WiFi for the "Roost!" project
 //               requires ESP8266 WiFi libraries
-//               https://github.com/esp8266/Arduino/*
+//               https://github.com/esp8266/Arduino
 //
 #include <ESP8266WiFi.h>
 

  display.drawString(0, 50, ls);
  display.display();
}

// -----------------------------------------------------------------------------
// Serial output: code for dealing with serial output for the "Roost!" project
//  
#define SERIAL_BAUD 74880               // ESP native speed

void serial_setup(){
  Serial.begin(SERIAL_BAUD);
  Serial.println("Roost initializing!");
}

void serial_roost() {
  Serial.print("NTP epoch: ");
  Serial.print(ntp_epoch_in_seconds);

  Serial.print(" \tHumidity: ");
  Serial.print(h);

  Serial.print(" % \tTemperature: ");
  Serial.print(t);
  Serial.print(" *C ");
  Serial.print(f);
  Serial.print(" *F");

  Serial.print(" \tHeat index: ");
  Serial.print(hic);
  Serial.print(" *C ");
  Serial.print(hif);
  Serial.print(" *F\t");

  Serial.print("last motion: ");
  Serial.println(pir_last_motion);
}


// -----------------------------------------------------------------------------
// Web output:  code for dealing with internet for the "Roost!" project

  // OLED
  oled_setup();
 
  // NTP time
  ntp_setup();
  
