#include "Interfaz.h"
float ppd = 0.0;

// For NodeMCU - use pin numbers in the form PIN_Dx where Dx is the NodeMCU pin designation
#define TFT_MISO  19  // Automatically assigned with ESP8266 if not defined
#define TFT_MOSI  23  // Automatically assigned with ESP8266 if not defined
#define TFT_SCLK  18  // Automatically assigned with ESP8266 if not defined

#define TFT_CS    15  // Chip select control pin D8
#define TFT_DC    2  // Data Command control pin
#define TFT_RST   4  // Reset pin (could connect to NodeMCU RST, see next line)
//#define TFT_RST  -1     // Set TFT_RST to -1 if the display RESET is connected to NodeMCU RST or 3.3V


void setup() {
  inicioPantalla();
  //pantallaWiFi();
  pantallaSimulacionIndices(24.3, 0.4, 50, 58.13, 0.5, 0.6, ppd);
  //pantallaControlPID(ppd);
}

void loop() {
  ppd += 0.1;
  actualizarValoresSimulacion(24.3, 0.4, 50, 58.13, 0.5, 0.6, ppd);
  //actualizacionPantallaControlPID(ppd);

  delay(10000);
}