GAMER1500
Published © GPL3+

Message Screen

Display messages on the screen.

BeginnerShowcase (no instructions)898
Message Screen

Things used in this project

Story

Read more

Schematics

arduino_uno_lcd_1602_TDgZO4iZ7d.fzz

Code

Untitled file

Arduino
#include <LiquidCrystal.h>

//Set's lcd to the Arduino's ports
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  lcd.begin(16, 2);
Serial.begin(9600);

}

void loop() {
  String content = "";
  char character;
 

  while(Serial.available()) {
      character = Serial.read();
      content.concat(character);
  }

  if (content != "") {
   
    if (content == "`") {
  content = "";
  lcd.setCursor(1,1);
}

if (content == "*") {
  content = "";
  lcd.setCursor(0,0);
}
    Serial.println(content);
    lcd.print(content);
  }
 
    if (content == "'") {
    lcd.clear();
  }
 

}

Credits

GAMER1500
1 project • 0 followers

Comments