Verified Commit 2a86b226 authored by Vinod Mishra's avatar Vinod Mishra
Browse files

Adding update icon instead of D1/D2/D3

parent ddb6face
......@@ -79,9 +79,8 @@ void DisplayStyle1() {
display.setCursor(42, 56);
display.print(data.RamUsed + "GB");
display.setTextSize(1);
display.setCursor(115, 1);
display.println("D1");
display.fillRect(118, 0, 10, 10, BLACK);
display.display();
oledDraw = 1;
......
......@@ -83,9 +83,7 @@ void DisplayStyle2() {
display.print("C"); // Centigrade Symbol
#endif
display.setTextSize(1);
display.setCursor(115, 1);
display.println("D2");
display.fillRect(118, 0, 10, 10, BLACK);
display.display();
......
......@@ -82,9 +82,7 @@ void DisplayStyle3() {
display.print("C"); // Centigrade Symbol
#endif
display.setTextSize(1);
display.setCursor(115, 1);
display.println("D3");
display.fillRect(118, 0, 10, 10, BLACK);
display.display();
......
......@@ -272,8 +272,7 @@ void serialEvent() {
stringComplete = true;
populateData();
delay(Serial_eventDelay); //delay screen event to stop screen data corruption
display.fillRect(115, 0, 42, 10, BLACK); // Flash top right corner when updating
display.drawBitmap(118, 0, DownloadBMP, 10, 10, WHITE);// Update symbol in top right corner when updating
display.display();
}
}
......
......@@ -40,4 +40,7 @@ const unsigned char JustCatBMP [] PROGMEM = {
0x00, 0x00, 0x00, 0x3f, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
const unsigned char DownloadBMP [] PROGMEM = {
0x0c, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x7f, 0x80, 0xbf, 0x40, 0x9e, 0x40, 0x8c, 0x40,
0x80, 0x40, 0xff, 0xc0
};
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment