-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDisplay.h
More file actions
50 lines (42 loc) · 1.02 KB
/
Copy pathDisplay.h
File metadata and controls
50 lines (42 loc) · 1.02 KB
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
#include <LiquidCrystal.h>
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
void setupDisplay(){
lcd.begin(16, 2);
lcd.setCursor(0,0);
lcd.print("Carregando...");
}
void printWelcome(){
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Bem vindo");
lcd.setCursor(0,1);
lcd.print("AUTOFEEDER");
}
void printFeeder(int maxi, int current){
lcd.clear();
lcd.setCursor(0,0);
lcd.print("ALIMENTANDO...");
lcd.setCursor(0,1);
lcd.print("M:"+String(maxi)+"g - A:"+String(current)+"g");
}
void printStart(String txt){
lcd.clear();
lcd.setCursor(0,0);
lcd.print(txt);
lcd.setCursor(0,1);
lcd.print("Press. SELECT");
}
void printRunning(int mini,int maxi,int current){
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Min/ Max/ Atual");
lcd.setCursor(0,1);
lcd.print(String(mini)+"g/ "+String(maxi)+"g/ "+String(current)+"g");
}
void printConfigWeight(String txt, int value,int current){
lcd.clear();
lcd.setCursor(0,0);
lcd.print(txt);
lcd.setCursor(0,1);
lcd.print(String(value)+"g"+" - A:"+String(current)+"g");
}