#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
const int MAX_CHAR = 3;
byte cloudLeft[8] = {
B00000,
B00000,
B00000,
B00110,
B01001,
B10000,
B10000,
B01111
};
byte cloudRight[8] = {
B00000,
B00000,
B01100,
B10010,
B00001,
B00001,
B00001,
B11110
};
byte smiley[8] = {
B00000,
B10001,
B00000,
B00000,
B10001,
B01110,
B00000,
};
void setup() {
lcd.createChar(0, smiley);
lcd.createChar(1, cloudLeft);
lcd.createChar(2, cloudRight);
lcd.begin(16, 2);
lcd.setCursor(2, 1);
for(int i = 0; i < MAX_CHAR; i++)
lcd.write(byte(i));
if(i == 1){
lcd.print("");
i++;
}
}
void loop() {}