#include <LiquidCrystal.h>
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
byte Char1[8] = {
B10010,
B01001,
B00100,
B00010,
B00010,
B00100,
B01001,
B10010
};
byte Char2[8] = {
B00000,
B00000,
B10000,
B01111,
B01111,
B10000,
B00000,
B00000
};
byte Char3[8] = {
B00100,
B01110,
B11111,
B11111,
B01111,
B00111,
B00011,
B00001
};
byte Char4[8] = {
B00100,
B01110,
B11111,
B11111,
B11110,
B11100,
B11000,
B10000
};
byte Char5[8] = {
B00000,
B00000,
B00000,
B11111,
B11111,
B00000,
B00000,
B00000
};
byte Char6[8] = {
B10000,
B11000,
B11100,
B11111,
B11111,
B11100,
B11000,
B10000
};
void setup() {
lcd.begin(16, 2);
lcd.createChar(0, Char1);
lcd.createChar(1, Char2);
lcd.createChar(2, Char3);
lcd.createChar(3, Char4);
lcd.createChar(4, Char5);
lcd.createChar(5, Char6);
lcd.clear();
}
void loop() {
lcd.setCursor(5, 0);
lcd.write(byte(0));
lcd.setCursor(6, 0);
lcd.write(byte(1));
lcd.setCursor(7, 0);
lcd.write(byte(2));
lcd.setCursor(8, 0);
lcd.write(byte(3));
lcd.setCursor(9, 0);
lcd.write(byte(4));
lcd.setCursor(10, 0);
lcd.write(byte(5));
lcd.setCursor(3, 1);
lcd.print("Kelompok05");
}