New white header UI
This commit is contained in:
@@ -129,11 +129,10 @@ void loop() {
|
|||||||
//
|
//
|
||||||
Serial.printf("Show data on SSD1306 display");
|
Serial.printf("Show data on SSD1306 display");
|
||||||
display.clear();
|
display.clear();
|
||||||
|
display.setColor(WHITE);
|
||||||
|
display.drawRect(0, 0, 128, 64); // UI Outline
|
||||||
|
display.fillRect(0, 0, 128, 14);
|
||||||
display.setTextAlignment(TEXT_ALIGN_CENTER);
|
display.setTextAlignment(TEXT_ALIGN_CENTER);
|
||||||
display.setFont(ArialMT_Plain_10);
|
|
||||||
display.drawRect(0, 0, 128, 64);
|
|
||||||
display.drawString(64, 2, "Exposure API Counter");
|
|
||||||
display.drawHorizontalLine(0, 16, 128);
|
|
||||||
if (seenNotifiers.size() == 1) {
|
if (seenNotifiers.size() == 1) {
|
||||||
display.drawString(64, 48, "Device in last " + String(FORGET_AFTER_MINUTES) +"min.");
|
display.drawString(64, 48, "Device in last " + String(FORGET_AFTER_MINUTES) +"min.");
|
||||||
}
|
}
|
||||||
@@ -143,5 +142,8 @@ void loop() {
|
|||||||
//display.drawString(64, 48, "Device(s) in last " + String(FORGET_AFTER_MINUTES) +"min.");
|
//display.drawString(64, 48, "Device(s) in last " + String(FORGET_AFTER_MINUTES) +"min.");
|
||||||
display.setFont(ArialMT_Plain_24);
|
display.setFont(ArialMT_Plain_24);
|
||||||
display.drawString(64, 20, String(seenNotifiers.size()));
|
display.drawString(64, 20, String(seenNotifiers.size()));
|
||||||
|
display.setColor(BLACK); // HEADER TITLE
|
||||||
|
display.setFont(ArialMT_Plain_10);
|
||||||
|
display.drawString(64, 0, "Exposure API Counter");
|
||||||
display.display();
|
display.display();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user