Display Formatierung und erster pseudo Reflow Ablauf

This commit is contained in:
Stefan 2020-10-14 00:06:14 +02:00
parent 4f56808d1c
commit 17a0d3e5ac
1 changed files with 18 additions and 6 deletions

View File

@ -27,6 +27,12 @@ const int buzzer = 5;
MAX6675 thermocouple(MAXCLK, MAXCS, MAXDO);
float oven_temp = 0.0;
float readTemperature(void) {
oven_temp = thermocouple.readCelsius();
}
void setup(void) {
Serial.begin(9600);
Serial.println("Hardware Test:");
@ -57,6 +63,8 @@ void loop(void) {
EncPos = newEncPos;
}
readTemperature();
u8g2.firstPage();
do {
u8g2.drawLine(0,15,128,15);
@ -65,7 +73,11 @@ void loop(void) {
u8g2.setFont(u8g2_font_ncenB10_tr);
u8g2.drawStr(0,11,"Ready to flow!");
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() );
//delay(1000);
delay(500);
}