gfromm9
Published

LCD For Writing Messages to Myself

I was using my Arduino Uno and I wanted to write a message to myself so I looked up LCD on the project hub.

IntermediateWork in progress1,101
LCD For Writing Messages to Myself

Things used in this project

Story

Read more

Schematics

lcdsetup_0pEtdy1K3H.jpg

Code

Untitled file

Arduino
lcd.begin(16, 2); //Tell the LCD that it is a 16x2 LCD
  pinMode(contra, OUTPUT); //set pin 9 to OUTPUT
  pinMode(bri, OUTPUT); //Set pin 10 to OUTPUT
  //pinMode-ing OUTPUT makes the specified pin output power
  digitalWrite(contra, LOW); /*outputs no power to the contrast pin.
                            this lets you see the words*/
  analogWrite(bri, 255); //Outputs full power to the screen brightness LED
}//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

void loop() {//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  // put your main code here, to run repeatedly:
  

  lcd.print("Whatever you"); //Output "Whatever you" on the first line of the LCD
  lcd.setCursor(0, 1); /*Set the (invisible) cursor on the first place second row of the LCD.
                        Cursor values are 0-indexed, 0 would the be the first place.
                        The cuWrsor coordinates are X,Y coordinates.*/
  lcd.print("Want");
  delay(1000); //Wait a second


  
  
  
  delay(1000);
  digitalWrite(contra,LOW);
  lcd.setCursor(0, 0);
}//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Credits

gfromm9
0 projects • 0 followers

Comments