forked from MaxN68it/Open-ArdBir
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ArdBir1.h
57 lines (48 loc) · 1.5 KB
/
ArdBir1.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
void ArdBir1 (byte posX, byte posY){
// Ard Symbol
byte Ard1[8] = {B00011, B00111, B00111, B01110, B01110, B11100, B11100, B11111};
byte Ard2[8] = {B11000, B11100, B11100, B01110, B01110, B00111, B00111, B11111};
byte Ard3[8] = {B11111, B11111, B11100, B11100, B11100, B11100, B11100, B11100};
byte Ard4[8] = {B11111, B11111, B00111, B00111, B00111, B00111, B00111, B00111};
// Bir Symbol
byte Bir1[8] = {B01111, B11111, B11111, B11100, B11100, B11100, B11111, B11111};
byte Bir2[8] = {B11000, B11100, B11110, B01111, B00111, B01111, B11110, B11100};
byte Bir3[8] = {B11111, B11100, B11100, B11100, B11100, B11111, B11111, B01111};
byte Bir4[8] = {B11110, B00111, B00111, B00111, B01110, B11110, B11100, B11000};
lcd.createChar(1, Ard1);
lcd.createChar(2, Ard2);
lcd.createChar(3, Ard3);
lcd.createChar(4, Ard4);
lcd.createChar(5, Bir1);
lcd.createChar(6, Bir2);
lcd.createChar(7, Bir3);
lcd.createChar(8, Bir4);
byte Count=1;
lcd.clear();
for(byte y=0; y<2; y++){
for (byte x=0; x<2; x++){
lcd.setCursor(posX+x,posY+y);
lcd.write(Count);
Count++;
}
}
delay(850);
lcd.setCursor(posX+2,posY+1);
lcd.print("rd");
delay(850);
for(byte y=0; y<2; y++){
for (byte x=5; x<7; x++){
lcd.setCursor(posX+x,posY+y);
lcd.write(Count);
Count++;
}
}
delay(850);
lcd.setCursor(posX+7,posY+1);
lcd.print("ir");
delay(1500);
lcd.setCursor(posX+10,posY+1);
lcd.print("By Max");
delay(3000);
lcd.clear();
}