Skip to content

Instantly share code, notes, and snippets.

@Ajak58a
Created March 12, 2024 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ajak58a/e10422191c2f9b9a60fbd6f351ac4ec2 to your computer and use it in GitHub Desktop.
Save Ajak58a/e10422191c2f9b9a60fbd6f351ac4ec2 to your computer and use it in GitHub Desktop.
Menu
void Menu()
{
tft.fillScreen(BLACK);
tft.drawRoundRect(0, 0, 320, 480, 8, WHITE); //Page border
tft.setCursor(140, 5);
tft.setTextSize(2);
tft.setTextColor(CYAN);
tft.print("Menu");
tft.setCursor(5, 30);
tft.drawRoundRect(5, 30, 300, 30, 8, WHITE); //Vote
tft.fillRoundRect(5, 30, 300, 30, 8, YELLOW);
tft.setTextColor(BLACK);
tft.setCursor(10, 38);
tft.print("OTC Pizza");
tft.setCursor(5, 65);
tft.drawRoundRect(5, 65, 300, 30, 8, WHITE); //Vote
tft.fillRoundRect(5, 65, 300, 30, 8, YELLOW);
tft.setTextColor(BLACK);
tft.setCursor(10, 73);
tft.print("Mix Veg Pizza");
tft.setCursor(5, 100);
tft.drawRoundRect(5, 100, 300, 30, 8, WHITE); //Vote
tft.fillRoundRect(5, 100, 300, 30, 8, YELLOW);
tft.setTextColor(BLACK);
tft.setCursor(10, 108);
tft.print("American Corn Pizza");
tft.setCursor(5, 135);
tft.drawRoundRect(5, 135, 300, 30, 8, WHITE); //Vote
tft.fillRoundRect(5, 135, 300, 30, 8, YELLOW);
tft.setTextColor(BLACK);
tft.setCursor(10, 143);
tft.print("Margherita Pizza");
tft.setCursor(5, 170);
tft.drawRoundRect(5, 170, 300, 30, 8, WHITE); //Vote
tft.fillRoundRect(5, 170, 300, 30, 8, YELLOW);
tft.setTextColor(BLACK);
tft.setCursor(10, 178);
tft.print("Paneer Cheese Pizza");
tft.setCursor(5, 205);
tft.drawRoundRect(5, 205, 300, 30, 8, WHITE); //Vote
tft.fillRoundRect(5, 205, 300, 30, 8, YELLOW);
tft.setTextColor(BLACK);
tft.setCursor(10, 213);
tft.print("COC Pizza");
tft.setCursor(5, 240);
tft.drawRoundRect(5, 240, 300, 30, 8, WHITE); //Vote
tft.fillRoundRect(5, 240, 300, 30, 8, YELLOW);
tft.setTextColor(BLACK);
tft.setCursor(10, 248);
tft.print("Red Pasta");
tft.setCursor(5, 275);
tft.drawRoundRect(5, 275, 300, 30, 8, WHITE); //Vote
tft.fillRoundRect(5, 275, 300, 30, 8, YELLOW);
tft.setTextColor(BLACK);
tft.setCursor(10, 283);
tft.print("White Pasta");
tft.setCursor(5, 310);
tft.drawRoundRect(5, 310, 300, 30, 8, WHITE); //Vote
tft.fillRoundRect(5, 310, 300, 30, 8, YELLOW);
tft.setTextColor(BLACK);
tft.setCursor(10, 318);
tft.print("Honey Chilli Potato");
tft.setCursor(5, 345);
tft.drawRoundRect(5, 345, 300, 30, 8, WHITE); //Vote
tft.fillRoundRect(5, 345, 300, 30, 8, YELLOW);
tft.setTextColor(BLACK);
tft.setCursor(10, 353);
tft.print("Cold Coffee");
tft.drawRoundRect(5, 380, 100, 90, 8, RED); //Vote
tft.fillRoundRect(5, 380, 100, 90, 8, RED);
tft.setTextColor(WHITE);
tft.setCursor(10, 406);
tft.print("Call");
tft.setCursor(10, 436);
tft.print("Waiter");
tft.drawRoundRect(110, 380, 100, 90, 8, RED); //Vote
tft.fillRoundRect(110, 380, 100, 90, 8, RED);
tft.setTextColor(WHITE);
tft.setCursor(140, 416);
tft.print("Bill");
tft.drawRoundRect(215, 380, 100, 90, 8, RED); //Vote
tft.fillRoundRect(215, 380, 100, 90, 8, RED);
tft.setTextColor(WHITE);
tft.setCursor(245, 416);
tft.print("Water");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment