#include <LiquidCrystal.h>
byte tortik[] = {
B00000,
B00000,
B01010,
B00000,
B10001,
B01110,
B00000,
B00000
};
byte bulochka[] = {
B00000,
B00000,
B01010,
B00000,
B01110,
B10001,
B00000,
B00000
};
byte chai[] = {
B00000,
B01010,
B00000,
B01110,
B01110,
B00100,
B00000,
B00000
};
byte pirojok[] = {
B00000,
B01010,
B00000,
B01010,
B00100,
B01010,
B00000,
B00000
};
LiquidCrystal a(12,11,10,9,8,7);
void setup() {
a.begin(16,2);
}
void loop() {
a.createChar(0,tortik);
a.setCursor(0,0);
a.write(byte(0));
a.createChar(1,bulochka);
a.setCursor(2,0);
a.write(byte(1));
a.createChar(2,chai);
a.setCursor(4,0);
a.write(byte(2));
a.createChar(3,pirojok);
a.setCursor(6,0);
a.write(byte(3));
}