void Button_Setup() { tft.fillScreen(BLACK); tft.fillRect(0, 80, 320, 1, WHITE); tft.setCursor(15, 100); tft.setTextColor(WHITE); tft.setTextSize(4); tft.println("="); tft.fillRect(0, 160, 160, 64, button_color); tft.drawRect(0, 160, 160, 64, WHITE); tft.setCursor(10, 182); tft.setTextColor(WHITE); tft.setTextSize(3); tft.println("Settings"); tft.fillRect(0, 224, 80, 64, button_color); tft.drawRect(0, 224, 80, 64, WHITE); tft.setCursor(23, 239); tft.setTextColor(WHITE); tft.setTextSize(5); tft.println("7"); tft.fillRect(0, 288, 80, 64, button_color); tft.drawRect(0, 288, 80, 64, WHITE); tft.setCursor(23, 303); tft.setTextColor(WHITE); tft.setTextSize(5); tft.println("4"); tft.fillRect(0, 352, 80, 64, button_color); tft.drawRect(0, 352, 80, 64, WHITE); tft.setCursor(23, 366); tft.setTextColor(WHITE); tft.setTextSize(5); tft.println("1"); tft.fillRect(0, 416, 80, 64, button_color); tft.drawRect(0, 416, 80, 64, WHITE); tft.setCursor(10, 441); tft.setTextColor(WHITE); tft.setTextSize(2); tft.println("Clear"); tft.fillRect(80, 224, 80, 64, button_color); tft.drawRect(80, 224, 80, 64, WHITE); tft.setCursor(103, 239); tft.setTextColor(WHITE); tft.setTextSize(5); tft.println("8"); tft.fillRect(80, 288, 80, 64, button_color); tft.drawRect(80, 288, 80, 64, WHITE); tft.setCursor(103, 303); tft.setTextColor(WHITE); tft.setTextSize(5); tft.println("5"); tft.fillRect(80, 352, 80, 64, button_color); tft.drawRect(80, 352, 80, 64, WHITE); tft.setCursor(103, 366); tft.setTextColor(WHITE); tft.setTextSize(5); tft.println("2"); tft.fillRect(80, 416, 80, 64, button_color); tft.drawRect(80, 416, 80, 64, WHITE); tft.setCursor(103, 431); tft.setTextColor(WHITE); tft.setTextSize(5); tft.println("0"); tft.fillRect(160, 160, 160, 64, button_color); tft.drawRect(160, 160, 160, 64, WHITE); tft.setCursor(187, 182); tft.setTextColor(WHITE); tft.setTextSize(3); tft.println("Delete"); tft.fillRect(160, 224, 80, 64, button_color); tft.drawRect(160, 224, 80, 64, WHITE); tft.setCursor(183, 239); tft.setTextColor(WHITE); tft.setTextSize(5); tft.println("9"); tft.fillRect(160, 288, 80, 64, button_color); tft.drawRect(160, 288, 80, 64, WHITE); tft.setCursor(183, 303); tft.setTextColor(WHITE); tft.setTextSize(5); tft.println("6"); tft.fillRect(160, 352, 80, 64, button_color); tft.drawRect(160, 352, 80, 64, WHITE); tft.setCursor(183, 366); tft.setTextColor(WHITE); tft.setTextSize(5); tft.println("3"); tft.fillRect(160, 416, 80, 64, button_color); tft.drawRect(160, 416, 80, 64, WHITE); tft.setCursor(183, 431); tft.setTextColor(WHITE); tft.setTextSize(5); tft.println("="); tft.fillRect(240, 224, 80, 64, button_color); tft.drawRect(240, 224, 80, 64, WHITE); tft.setCursor(263, 239); tft.setTextColor(WHITE); tft.setTextSize(5); tft.println("+"); tft.fillRect(240, 288, 80, 64, button_color); tft.drawRect(240, 288, 80, 64, WHITE); tft.setCursor(263, 303); tft.setTextColor(WHITE); tft.setTextSize(5); tft.println("-"); tft.fillRect(240, 352, 80, 64, button_color); tft.drawRect(240, 352, 80, 64, WHITE); tft.setCursor(263, 357); tft.setTextColor(WHITE); tft.setTextSize(5); tft.println("x"); tft.fillRect(240, 416, 80, 64, button_color); tft.drawRect(240, 416, 80, 64, WHITE); tft.setCursor(263, 431); tft.setTextColor(WHITE); tft.setTextSize(5); tft.println("/"); }