-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTeller.h
61 lines (58 loc) · 1.19 KB
/
Teller.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
58
59
60
61
void Teller(void)
{
u8g.drawXBMP(0, 0, fles_width, fles_height, fles_bits);
u8g.setFont(u8g_font_gdr25r);
u8g.drawStr(38 , 28, "x");
u8g.drawStr(60 , 28, Telling);
u8g.drawXBMP(36, 37, euro_width, euro_height, euro_bits);
u8g.drawStr(60 , 60, Euros);
//Kwart euro teller
switch (kwart) {
case 1:
u8g.drawBox(118,55,8,5);
break;
case 2:
u8g.drawBox(118,55,8,5);
u8g.drawBox(118,49,8,5);
break;
case 3:
u8g.drawBox(118,55,8,5);
u8g.drawBox(118,49,8,5);
u8g.drawBox(118,43,8,5);
break;
case 4:
u8g.drawBox(118,55,8,5);
u8g.drawBox(118,49,8,5);
u8g.drawBox(118,43,8,5);
u8g.drawBox(118,37,8,5);
break;
}
}
void Tellerdisplay(void)
{
u8g.firstPage();
do {
Teller();
} while( u8g.nextPage() );
}
//IR code
void Tellingen(void){
if (digitalRead(2) == LOW && wacht == 10){
digitalWrite(5, HIGH);
backlight = 1;
previousMillis = millis();
pagina = 2;
wacht = 0;
tone(6, 2000, 192); //Toon 2000 (van 0t4000) op speaker pin 6
delay(200);
Flessen++;
if (kwart < 4){
kwart++;
}
else{
kwart = 1;
}
FlessenUpdate();
kwartUpdate();
}
}