#include <LiquidCrystal.h>
// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 2, en = 3, d4 = 4, d5 = 5, d6 = 6, d7 = 7;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("Welcome");
delay(3000);
lcd.setCursor(0, 0);
lcd.print("Automatic Drug");
lcd.setCursor(0, 1);
lcd.print("Dispensing");
delay(3000);
lcd.clear();
//delay(3000);
lcd.setCursor(0, 0);
lcd.print("By Braille");
lcd.setCursor(0, 1);
lcd.print("Vision");
delay(3000);
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("Enter Drug Name");
delay(3000);
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("Drug1");
lcd.setCursor(0, 1);
lcd.print("Drug2");
delay(3000);
}
void loop() {
// lcd.setCursor(0, 0);
// lcd.print("Automatic Drug");
// lcd.setCursor(0, 1);
// lcd.print("Dispensing");
// // set the cursor to column 0, line 1
// // (note: line 1 is the second row, since counting begins with 0):
// lcd.setCursor(0, 1);
// // print the number of seconds since reset:
// lcd.print(millis() / 1000);
}
Loading
st-nucleo-c031c6
st-nucleo-c031c6