Skip to content

Commit

Permalink
add hot water screen
Browse files Browse the repository at this point in the history
showing water drops and current temperature
  • Loading branch information
LoQue90 committed Aug 19, 2024
1 parent 30f7c02 commit 16f6381
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/display/bitmaps.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#define Water_Empty_Logo_height 64
#define Manual_Flush_Logo_width 40
#define Manual_Flush_Logo_height 40
#define Hot_Water_Logo_width 40
#define Hot_Water_Logo_height 40

// clang-format off

Expand Down Expand Up @@ -225,4 +227,20 @@ static const unsigned char Manual_Flush_Logo[] U8X8_PROGMEM = {
0x00,0x3c,0x00,0x00
};

static const unsigned char Hot_Water_Logo[] U8X8_PROGMEM = {
0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x18, 0x00, 0x00,
0xfc, 0x00, 0x1c, 0x00, 0x00, 0xfe, 0x00, 0x3e, 0x00, 0x00, 0xef, 0x01, 0x36, 0x00, 0x00, 0xc7,
0x01, 0x63, 0x00, 0x80, 0xc7, 0x03, 0xe3, 0x00, 0xc0, 0x83, 0x87, 0xc1, 0x00, 0xc0, 0x03, 0x87,
0xc1, 0x01, 0xe0, 0x01, 0xcf, 0x80, 0x01, 0xe0, 0x00, 0xce, 0x80, 0x01, 0xf0, 0x00, 0x9e, 0xc1,
0x00, 0x78, 0x00, 0xbc, 0xe3, 0x00, 0x38, 0x00, 0x38, 0x7f, 0x00, 0x3c, 0x00, 0x78, 0x1c, 0x00,
0x1c, 0x00, 0x70, 0x00, 0x00, 0x1e, 0x00, 0xf0, 0xc0, 0x00, 0x0e, 0x00, 0xe0, 0xc0, 0x01, 0x0f,
0x00, 0xc0, 0xe1, 0x03, 0x07, 0x00, 0xc0, 0xf1, 0x03, 0x07, 0x00, 0xc0, 0xf1, 0x07, 0x07, 0x00,
0xc0, 0x79, 0x0f, 0x07, 0x00, 0xc0, 0x39, 0x0f, 0x0f, 0x00, 0xe0, 0x3d, 0x1e, 0x0e, 0x00, 0xe0,
0x1e, 0x1c, 0x1e, 0x00, 0xf0, 0x0e, 0x3c, 0x3c, 0x00, 0x78, 0x0f, 0x78, 0x78, 0x00, 0x3c, 0x07,
0x78, 0xf8, 0x01, 0x9f, 0x07, 0xf0, 0xe0, 0xff, 0x8f, 0x03, 0xe0, 0xc0, 0xff, 0x87, 0x03, 0xe0,
0x00, 0xff, 0x81, 0x03, 0xe0, 0x00, 0x00, 0x80, 0x03, 0xf0, 0x00, 0x00, 0x80, 0x07, 0x70, 0x00,
0x00, 0x00, 0x0f, 0x78, 0x00, 0x00, 0x00, 0x1f, 0x3e, 0x00, 0x00, 0x00, 0xfe, 0x1f, 0x00, 0x00,
0x00, 0xfc, 0x0f, 0x00, 0x00, 0x00, 0xf0, 0x03
};

// clang-format on
11 changes: 11 additions & 0 deletions src/display/displayCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,17 @@ bool displayMachineState() {
u8g2.sendBuffer();
return true;
}
// Hot Water
else if (machineState == kHotWater && brewSwitchState != kBrewSwitchFlushOff) {
u8g2.clearBuffer();
u8g2.drawXBMP(0, 12, Hot_Water_Logo_width, Hot_Water_Logo_height, Hot_Water_Logo);

displayTemperature(48, 16);

displayWaterIcon(119, 1);
u8g2.sendBuffer();
return true;
}
// Steam
else if (machineState == kSteam && brewSwitchState != kBrewSwitchFlushOff) {
u8g2.clearBuffer();
Expand Down

0 comments on commit 16f6381

Please sign in to comment.