Display Formatierung und erster pseudo Reflow Ablauf
This commit is contained in:
parent
4f56808d1c
commit
17a0d3e5ac
|
@ -27,6 +27,12 @@ const int buzzer = 5;
|
||||||
|
|
||||||
MAX6675 thermocouple(MAXCLK, MAXCS, MAXDO);
|
MAX6675 thermocouple(MAXCLK, MAXCS, MAXDO);
|
||||||
|
|
||||||
|
float oven_temp = 0.0;
|
||||||
|
|
||||||
|
float readTemperature(void) {
|
||||||
|
oven_temp = thermocouple.readCelsius();
|
||||||
|
}
|
||||||
|
|
||||||
void setup(void) {
|
void setup(void) {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
Serial.println("Hardware Test:");
|
Serial.println("Hardware Test:");
|
||||||
|
@ -57,6 +63,8 @@ void loop(void) {
|
||||||
EncPos = newEncPos;
|
EncPos = newEncPos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
readTemperature();
|
||||||
|
|
||||||
u8g2.firstPage();
|
u8g2.firstPage();
|
||||||
do {
|
do {
|
||||||
u8g2.drawLine(0,15,128,15);
|
u8g2.drawLine(0,15,128,15);
|
||||||
|
@ -65,7 +73,11 @@ void loop(void) {
|
||||||
u8g2.setFont(u8g2_font_ncenB10_tr);
|
u8g2.setFont(u8g2_font_ncenB10_tr);
|
||||||
u8g2.drawStr(0,11,"Ready to flow!");
|
u8g2.drawStr(0,11,"Ready to flow!");
|
||||||
u8g2.setFont(u8g2_font_ncenB18_tr);
|
u8g2.setFont(u8g2_font_ncenB18_tr);
|
||||||
u8g2.drawStr(0,47,"122°C");
|
u8g2.setCursor(0,47);
|
||||||
|
u8g2.print(oven_temp);
|
||||||
|
//u8g2.drawStr(0,47,"120C");
|
||||||
} while ( u8g2.nextPage() );
|
} while ( u8g2.nextPage() );
|
||||||
//delay(1000);
|
|
||||||
|
|
||||||
|
delay(500);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue