#include <LiquidCrystal.h>
const int RS = 11, EN = 12, D4 = 2, D5 = 3, D6 = 4, D7 = 5;
LiquidCrystal lcd(RS, EN, D4, D5, D6, D7);
int trig = 6;
int echo = 7;
byte customChar0[8] =
{
B00000,
B11011,
B10101,
B10001,
B01010,
B00100,
B00000,
B00000
};
byte customChar1[8] =
{
B00000,
B11011,
B10101,
B10001,
B01010,
B00100,
B00000,
B00000
};
byte customChar2[8] =
{
B00000,
B11011,
B10101,
B10001,
B01010,
B00100,
B00000,
B00000
};
byte customChar3[8] =
{
B00000,
B11011,
B10101,
B10001,
B01010,
B00100,
B00000,
B00000
};
byte customChar4[8] =
{
B00000,
B11011,
B10101,
B10001,
B01010,
B00100,
B00000,
B00000
};
byte customChar5[8] =
{
B00000,
B11011,
B10101,
B10001,
B01010,
B00100,
B00000,
B00000
};
byte customChar6[8] =
{
B00000,
B11011,
B10101,
B10001,
B01010,
B00100,
B00000,
B00000
};
byte customChar7[8] =
{
B00000,
B11011,
B10101,
B10001,
B01010,
B00100,
B00000,
B00000
};
byte customChar8[8] =
{
B00000,
B11011,
B10101,
B10001,
B01010,
B00100,
B00000,
B00000
};
void setup()
{
lcd.begin(16, 2); // set up number of columns and rows
lcd.createChar(0, customChar0); // create a new custom character (index 0)
lcd.createChar(1, customChar1); // create a new custom character (index 0)
lcd.setCursor(0, 0); // move cursor to (2, 0)
lcd.write((byte)0); // print the custom char 0 at (2, 0)
lcd.setCursor(1, 0); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(2, 0); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(3, 0); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(4, 0); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(5, 0); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(6, 0); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(7, 0); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(8, 0); // move cursor to (2, 0)
lcd.write((byte)0); // print the custom char 0 at (2, 0)
lcd.setCursor(9, 0); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(10, 0); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(11, 0); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(12, 0); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(13, 0); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(14, 0); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(15, 0); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
//2 qator
lcd.setCursor(0, 1); // move cursor to (2, 0)
lcd.write((byte)0); // print the custom char 0 at (2, 0)
lcd.setCursor(1, 1); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(2, 1); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(3, 1); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(4, 1); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(5, 1); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(6, 1); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(7, 1); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(8, 1); // move cursor to (2, 0)
lcd.write((byte)0); // print the custom char 0 at (2, 0)
lcd.setCursor(9, 1); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(10, 1); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(11, 1); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(12, 1); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(13, 1); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(14, 1); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
lcd.setCursor(15, 1); // move cursor to (2, 0)
lcd.write((byte)1); // print the custom char 0 at (2, 0)
}
void loop() {
}