-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathUIFooter.cpp
29 lines (22 loc) · 1.1 KB
/
UIFooter.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "UIFooter.h"
UIFooter::UIFooter(Adafruit_GFX& screen, int offsetX, int offsetY, int width, int height)
:UIRenderer(screen, offsetX, offsetY, width, height)
{
}
void UIFooter::draw()
{
this->screen.setTextSize(1);
this->screen.setTextColor(0x00);
this->screen.fillRect(1, this->screenHeight - 15, this->screenWidth / 4 - 2, 15, 0x9FE0);
this->screen.setCursor(4, this->screenHeight - 13);
this->screen.print("MENU");
this->screen.fillRect(1 + this->screenWidth / 4, this->screenHeight - 15, this->screenWidth / 4 - 2, 15, 0x07FF);
this->screen.setCursor(4 + this->screenWidth / 4, this->screenHeight - 13);
this->screen.print(" UP ");
this->screen.fillRect(1 + 2 * (this->screenWidth / 4), this->screenHeight - 15, this->screenWidth / 4 - 2, 15, 0xF01F);
this->screen.setCursor(4 + 2 * (this->screenWidth / 4), this->screenHeight - 13);
this->screen.print("DOWN");
this->screen.fillRect(1 + 3 * (this->screenWidth / 4), this->screenHeight - 15, this->screenWidth / 4 - 2, 15, 0xF800);
this->screen.setCursor(4 + 3 * (this->screenWidth / 4), this->screenHeight - 13);
this->screen.print(" RST");
}