This is also kind of a I2C tutorial so 2 in 1, I guess!
This code is in C++This is a very easy project, but it uses a bunch of big boy code such as
LiquidCrystal_I2C lcd(0x27,16,2);
1. To start you need to download the LiquidCrystal_I2C Library
Make sure it matches the gray one
2. Once you have downloaded the LiquidCrystal I2C Libary
Put in this code
#inlcude <Wire.h> //for the I2C
#include <LiquidCrystal_I2C.h> //for the LCD
3. Put in this code to setup the LCD
LiquidCrystal_I2C lcd(0x27,16,2); //make sure its (0x27,16,2)
4. Put in some more setup code, Make sure it's in the Void setup()
void setup()
{
lcd.init(); // initialize the lcd
lcd.init();
lcd.backlight();
}
5. Put the finishing code in!
void loop()
{
lcd.setCursor(0,0); //Let it rip!
lcd.print("Who let the dogs");
lcd.setCursor(0,1);
lcd.print("out?");
delay(2250);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Who, who, who,");
lcd.setCursor(0,1);
lcd.print("who, who?");
delay(2250);
lcd.clear();
}
6. Final code!
//FULL CHORUS OF WHO LET THE DOGS OUT©
//Made by vanze
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display
void setup()
{
lcd.init(); // initialize the lcd
lcd.init();
lcd.backlight();
}
void loop()
{
lcd.setCursor(0,0); //Let it rip!
lcd.print("Who let the dogs");
lcd.setCursor(0,1);
lcd.print("out?");
delay(2250);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Who, who, who,");
lcd.setCursor(0,1);
lcd.print("who, who?");
delay(2250);
lcd.clear();
}
Enjoy!
7ish. I made a sloppier version so you could add more lyrics!
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display
void setup()
{
lcd.init(); // initialize the lcd
lcd.init();
lcd.backlight();
lcd.setCursor(0,0); //Let it rip!
lcd.print("Who let the dogs");
lcd.setCursor(0,1);
lcd.print("out?");
delay(2250);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Who, who, who,");
lcd.setCursor(0,1);
lcd.print("who, who?");
delay(2250);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Who let the dogs");
lcd.setCursor(0,1);
lcd.print("out?");
delay(2250);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Who, who, who, ");
lcd.setCursor(0,1);
lcd.print("who, who?");
delay(2250);
lcd.clear();
lcd.print("Who let the dogs");
lcd.setCursor(0,1);
lcd.print("out?");
delay(2250);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Who, who, who, ");
lcd.setCursor(0,1);
lcd.print("who, who?");
delay(2250);
lcd.clear();
lcd.print("Who let the dogs");
lcd.setCursor(0,1);
lcd.print("out?");
delay(2250);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Who, who, who, ");
lcd.setCursor(0,1);
lcd.print("who, who?");
delay(2250);
lcd.clear();
lcd.print("Who let the dogs");
lcd.setCursor(0,1);
lcd.print("out?");
delay(2250);
lcd.clear();
lcd.setCursor(5,0);
lcd.print("Corgzz")
;}
void loop()
{
}
Comments
Please log in or sign up to comment.