//Kelompok 1
// include the library code:
#include <LiquidCrystal.h>
// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal layar(rs, en, d4, d5, d6, d7);
byte panah[] = {
B10010,
B01001,
B00100,
B00010,
B00010,
B00100,
B01001,
B10010
};
byte garis1[] = {
B00000,
B00000,
B10000,
B01111,
B01111,
B10000,
B00000,
B00000
};
byte hearth1[] = {
B00100,
B01110,
B11111,
B11111,
B01111,
B00111,
B00011,
B00001,
};
byte hearth2[] = {
B00100,
B01110,
B11111,
B11111,
B11110,
B11100,
B11000,
B10000
};
byte garis2[] = {
B00000,
B00000,
B00000,
B11111,
B11111,
B00000,
B00000,
B00000
};
byte panah1[] = {
B10000,
B11000,
B11100,
B11111,
B11111,
B11100,
B11000,
B10000
};
void setup() {
// set up the LCD's number of columns and rows:
layar.begin(16, 2);
layar.createChar(0, panah);
layar.setCursor(5,0);
layar.write((byte)0);
layar.createChar(1, garis1);
layar.setCursor(6,0);
layar.write((byte)1);
layar.createChar(2, hearth1);
layar.setCursor(7,0);
layar.write((byte)2);
layar.createChar(3, hearth2);
layar.setCursor(8,0);
layar.write((byte)3);
layar.createChar(4, garis2);
layar.setCursor(9,0);
layar.write((byte)4);
layar.createChar(5, panah1);
layar.setCursor(10,0);
layar.write((byte)5);
layar.setCursor(3,1);
layar.print("Kelompok01");
}
void loop() {
}