// #include <LiquidCrystal_I2C.h>
#include "LiquidCrystal.h"
// PulseSensorPlayground pulseSensor; // Creates an instance of the PulseSensorPlayground object called "pulseSensor"
// LiquidCrystal_I2C lcd(0x27, 16, 2);
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
void ScreenInit(){
byte selectIcon[8] = {
0b00000,
0b01100,
0b00010,
0b11111,
0b11111,
0b00010,
0b01100,
0b00000
};
byte playIcon[8] = {
0b10000,
0b11000,
0b11100,
0b11110,
0b11110,
0b11100,
0b11000,
0b10000
};
byte pauseIcon[8] = {
0b00000,
0b11011,
0b11011,
0b11011,
0b11011,
0b11011,
0b11011,
0b00000
};
byte stopIcon[8] = {
0b00000,
0b11111,
0b11111,
0b11111,
0b11111,
0b11111,
0b11111,
};
byte upIcon[8] = {
0b00000,
0b00100,
0b01110,
0b10101,
0b00100,
0b00100,
0b00100,
0b00000
};
byte downIcon[8] = {
0b00000,
0b00100,
0b00100,
0b00100,
0b10101,
0b01110,
0b00100,
0b00000
};
byte updownIcon[8] = {
0b00100,
0b01110,
0b10101,
0b00100,
0b00100,
0b10101,
0b01110,
0b00100
};
byte checkIcon[8] = {
0b00000,
0b00000,
0b00001,
0b00010,
0b10100,
0b01000,
0b00000,
0b00000
};
//%% createChar: Allow to create up to 8 custom charters (0 indexed: 0-7) of 5x8 pixels
//%% To display a custom character on the screen use write(i) i: is number of the custom character.
lcd.begin(16, 2); //config the LCD, 16 col x 2 row
lcd.clear();
lcd.createChar(0, selectIcon);
lcd.createChar(1, playIcon);
lcd.createChar(2, pauseIcon);
lcd.createChar(3, stopIcon);
lcd.createChar(4, upIcon);
lcd.createChar(5, downIcon);
lcd.createChar(6, updownIcon);
lcd.createChar(7, checkIcon);
lcd.clear();
}
void setup() {
ScreenInit();//iniciar el lcd y cargar caracteres personali...
// // //pantalla inicial
// // lcd.clear();
// // lcd.setCursor(0,0);
// // lcd.print("FIL NORM");
// // //segunda linea
// // lcd.setCursor(0, 1);
// // lcd.write(byte(0)); //coloca el caracter flecha
// // lcd.setCursor(1, 1);
// // lcd.write(byte(2)); //coloca el caracter de pause
// // // lcd.setCursor(3, 1);
// // // lcd.write(byte(3));//coloca el caracter stop
// // //numero antes del /
// // lcd.setCursor(6, 1);
// // lcd.print("0");
// // lcd.setCursor(7, 1);
// // lcd.print("/");
// // //numero despues del /
// // lcd.setCursor(8, 1);
// // lcd.print("20");
// // lcd.setCursor(11,1);
// // lcd.print("(MIN)"); // lcd.print("(SEG)");
//pantalla iniciar menu
// lcd.clear();
// lcd.setCursor(0,0);
// lcd.print("INICIAR");
// //segunda linea
// lcd.setCursor(0, 1);
// lcd.write(byte(0)); //coloca el caracter flecha
// lcd.setCursor(2, 1);
// lcd.write(byte(1)); //coloca el caracter de pause
//pantalla para ingresar al menu lavado con quimicos
// lcd.clear();
// lcd.setCursor(0,0);
// lcd.print("LAVADO QMS");
// //segunda linea
// lcd.setCursor(0, 1);
// lcd.write(byte(0)); //coloca el caracter flecha
// lcd.setCursor(1, 1);
// lcd.print("ENTRAR SALIR");
//--------------------------------------------------
//iniciar el lavado con químicos
lcd.clear();
lcd.setCursor(0,0);
lcd.print("FINAL LAVADO QMS");
//segunda linea
lcd.setCursor(0,1); //put cursor in this position.
lcd.print("PRESIONE \"Ent\"");
}
void loop() {
delay(50); // considered best practice in a simple sketch.
}