#include "defines.h"
#include <LiquidCrystal_I2C_Hangul.h>
LiquidCrystal_I2C_Hangul lcd(0x20,16,2);
#include <thermistor.h>
thermistor therm1(therm1_pin, 0);
thermistor therm2(therm2_pin, 0);
//thermistor therm1(A6, 0);
//thermistor therm2(A7, 0);
//-----------------------------------
// MOTORES ==========================//
#include <AccelStepper.h>
// Create a new instance of the AccelStepper class:
AccelStepper stepper1 = AccelStepper(motorInterfaceType, stpPin, dirPin);
AccelStepper stepper2 = AccelStepper(motorInterfaceType, stpPin2, dirPin2);
int mt1_sp = 0;
int mt2_sp = 0;
//Stepper Variables
int currentSpeed=100;
//===================================//
//Counter to change positions of pages
int page_counter=3 ; //To move beetwen pages
//-------Pins-----//
int up; //Up button
int down; //Down button
int sel; //Select button
int left;
int right;
int buttonValue = 0;
int buttonPin = A0;
int btnCapt ( up, sel, down, left, right );
//---------Storage debounce function-----//
boolean current_up = LOW;
boolean last_up=LOW;
boolean last_down = LOW;
boolean current_down = LOW;
boolean current_sel = LOW;
boolean last_sel = LOW;
boolean curr_left = LOW;
boolean last_left = LOW;
boolean curr_right = LOW;
boolean last_right = LOW;
//---------------------------
//-- thermistor ------------
float temp1_read = 0.0;
float temp2_read = 0.0;
int ledState = LOW;
int led2State = LOW;