#include <LiquidCrystal.h>
#define RS_PIN 12
#define ENABLE_PIN 11
#define D4_PIN 10
#define D5_PIN 9
#define D6_PIN 8
#define D7_PIN 7
LiquidCrystal lcd(RS_PIN, ENABLE_PIN, D4_PIN, D5_PIN, D6_PIN, D7_PIN);
uint8_t redMana[] = {
0b00000,
0b10100,
0b00010,
0b01001,
0b11101,
0b11111,
0b11110,
0b01000
};
uint8_t blueMana[] = {
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
};
uint8_t blackManaL[] = {
0b00111,
0b01101,
0b11001,
0b11111,
0b01110,
0b00111,
0b00101,
0b00101
};
uint8_t blackManaR[] = {
0b11100,
0b10110,
0b10011,
0b11111,
0b01110,
0b11100,
0b10100,
0b10100
};
void setup() {
// Initialise LCD
lcd.begin(20, 4);
// Initialise custom chars
lcd.createChar(1, blackManaL);
lcd.createChar(2, blackManaR);
// Name
lcd.setCursor(0, 0);
lcd.print("Token");
// Type
lcd.setCursor(2, 1);
lcd.print("Human Soldier");
// Cost
lcd.setCursor(16, 0);
lcd.print("\1\2");
// ATK/DEF
lcd.setCursor(15, 3);
lcd.print("00/00");
}
void loop() {
// put your main code here, to run repeatedly:
}