Skip to content

Instantly share code, notes, and snippets.

@TiMladenov
Created June 4, 2018 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TiMladenov/cffae998b93c1d6881dbfadbd6b73b21 to your computer and use it in GitHub Desktop.
Save TiMladenov/cffae998b93c1d6881dbfadbd6b73b21 to your computer and use it in GitHub Desktop.
#include <LiquidCrystal.h>
#include <Wire.h>
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // SET I2C Address
void setup() {
lcd.begin(16,2); // Initialinze LCD.
lcd.backlight(); // makes Backligh ON.
lcd.clear(); // Clears LCD
lcd.home(); // Sets cursor at Column 0 and Line 0
lcd.print("Hello, world!");
lcd.setCursor(0,1); // Sets cursor at Column 0 and Line 1
lcd.print("Robo India");
}
void loop()
{
// include your code.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment