Hi to start off I am kind of new in arduino and need some help
First what I need to do over all is a kind of ventilator but right now I am working in creating a menu with an LCD and some pushbuttons and then work on the details of every sensor I’ll be using
So right now what I want is for my display to display first “Welcome to your Ventilator” and the clear the screen and put up Menu and the variables.
This is my code the buttons are for later
#include <LiquidCrystal.h>
int button1 = 3;
int button2 = 4;
int buttonNew1;
int buttonNew2;
int buttonOld1 = 1;
int buttonOld2 = 1;
int modo;
LiquidCrystal lcd(2, 3, 4, 5, 6, 7);
void setup() { // put your setup code here, to run once:
pinMode(button1, INPUT_PULLUP);
pinMode(button2, INPUT_PULLUP);
Serial.begin(9600);
lcd.begin(16,2);
}
void loop() { // put your main code here, to run repeatedly:
buttonNew1 = digitalRead(button1);
buttonNew2 = digitalRead(button2);
lcd.setCursor(0,0);
lcd.print("Welcome to your");
lcd.setCursor(3,1);
lcd.print("Ventilator");
delay(2000);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Menu");
lcd.setCursor(0,1);
lcd.print("Temp/FiO2/Flujo");
}
when i run it the fisrt message comes up good but then the words get mixed in together so it does not display correctly any help with this? There is a lot more I need to do but since I am just starting in arduino any quick fix thanks