# HG changeset patch # User Ethan Zonca # Date 2014-10-18 17:33:12 # Node ID fe0367a9a87af568f7bb213c35e465f29ba494dc # Parent 4157af9eb546a6b4bafc8a4891bf82e6c960e45c Added larger font size and removed logos on preheat/etc screens diff --git a/main.c b/main.c --- a/main.c +++ b/main.c @@ -92,8 +92,9 @@ int main(void) // Check for problems on startup if(clock_fail) { //ssd1306_DrawStringBig("ERROR: Check Xtal", 2, 0); - ssd1306_DrawStringBig("XTAL ERR", 2, 0); - delay(5000); + ssd1306_DrawStringBig("NO XTAL", 2, 0); + delay(1000); + ssd1306_clearscreen(); } // Init USB @@ -264,9 +265,7 @@ void process() char tempstr[6]; itoa(ssr_output, tempstr); - ssd1306_DrawString("#=", 2, 45); - ssd1306_DrawString(" ", 2, 57); - ssd1306_DrawString(tempstr, 2, 57); + ssd1306_DrawString(tempstr, 0, 90); GPIO_SetBits(LED_STAT); GPIO_SetBits(SSR_PIN); @@ -285,12 +284,11 @@ void process() void draw_setpoint() { char tempstr[3]; itoa_fp(temp, temp_frac, tempstr); - //ssd1306_DrawString(" ", 3, 40); - ssd1306_DrawString(tempstr, 3, 40); - ssd1306_DrawString("-> ", 3, 80); + ssd1306_DrawStringBig(tempstr, 3, 0); + ssd1306_DrawStringBig(">", 3, 74); itoa(setpoint, tempstr); - ssd1306_DrawString(" ", 3, 95); - ssd1306_DrawString(tempstr, 3, 95); + ssd1306_DrawStringBig(" ", 3, 90); + ssd1306_DrawStringBig(tempstr, 3, 90); } uint8_t goto_mode = 2; @@ -594,8 +592,8 @@ void machine() // Write text to OLED // [ therm : preheating brew ] // [ 30 => 120 C ] - ssd1306_DrawString("Preheating...", 0, 40); - ssd1306_drawlogo(); + ssd1306_DrawString("Preheating...", 0, 0); + //ssd1306_drawlogo(); draw_setpoint(); pid_enabled = 1; setpoint = setpoint_brew; @@ -621,8 +619,8 @@ void machine() // Write text to OLED // [ therm : ready to brew ] // [ 30 => 120 C ] - ssd1306_DrawString("Ready to Brew!", 0, 40); - ssd1306_drawlogo(); + ssd1306_DrawString("Preheated!", 0, 0); + //ssd1306_drawlogo(); draw_setpoint(); pid_enabled = 1; setpoint = setpoint_brew; @@ -646,8 +644,8 @@ void machine() // Write text to OLED // [ therm : preheating steam ] // [ 30 => 120 C ] - ssd1306_DrawString("Preheating...", 0, 40); - ssd1306_drawlogo(); + ssd1306_DrawString("Preheating...", 0, 0); + //ssd1306_drawlogo(); draw_setpoint(); pid_enabled = 1; setpoint = setpoint_steam; @@ -673,8 +671,8 @@ void machine() // Write text to OLED // [ therm : ready to steam ] // [ 30 => 120 C ] - ssd1306_DrawString("Ready to Steam!", 0, 40); - ssd1306_drawlogo(); + ssd1306_DrawString("Ready to Steam!", 0, 0); + //ssd1306_drawlogo(); draw_setpoint(); pid_enabled = 1; setpoint = setpoint_steam;