Advertisement
Trainlover08

boot code

Jul 3rd, 2023
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.94 KB | None | 0 0
  1. //Boot screen
  2.     // Initializing the VEX Controller LCD
  3.     vex::lcd ControllerScreen = vex::lcd();
  4.  
  5.     // Set the font and size for "7686X" text
  6.     ControllerScreen.setFont(vex::fontType::mono40);
  7.     ControllerScreen.setFontSize(40);
  8.     ControllerScreen.setPenColor(vex::color::black);
  9.  
  10.     // Calculate the center coordinates for "7686X" text
  11.     int centerX = ControllerScreen.width() / 2;
  12.     int centerY = ControllerScreen.height() / 2 - 30; // Adjust for the line below
  13.  
  14.     // Display "7686X" text centered on the screen
  15.     ControllerScreen.printAt(centerX, centerY, "7686X");
  16.  
  17.     // Set the font and size for "Phoenix Rising" text
  18.     ControllerScreen.setFont(vex::fontType::mono20);
  19.     ControllerScreen.setFontSize(20);
  20.  
  21.     // Calculate the center coordinates for "Phoenix Rising" text
  22.     int lineCenterY = centerY + 60; // Adjust for the line above
  23.  
  24.     // Display "Phoenix Rising" text centered below "7686X"
  25.     ControllerScreen.printAt(centerX, lineCenterY, "Phoenix Rising");
  26.  
  27.     //Sleep before wiping the screen
  28.     this_thread::sleep_for(1500);
  29.     Brain.Screen.clearScreen();
  30.  
  31.     //Next screen
  32.     Screen.render();
  33.  
  34.     // Set text alignment to left with horizontal centering
  35.     Screen.setOrigin(0, 50);
  36.  
  37.     // Team member credits
  38.     Screen.setFont(vex::fontType::mono20);
  39.    
  40.     // Display team member names and titles
  41.     Screen.print("Jayden Yanzick - ");
  42.     vex::task::sleep(500);
  43.     Screen.println("Builder");
  44.     vex::task::sleep(500);
  45.  
  46.     Screen.print("Chase ***** - ");
  47.     vex::task::sleep(500);
  48.     Screen.println("Builder");
  49.     vex::task::sleep(500);
  50.  
  51.     Screen.print("Connor Albers - ");
  52.     vex::task::sleep(500);
  53.     Screen.println("Builder");
  54.     vex::task::sleep(500);
  55.  
  56.     Screen.print("Miles Berger - ");
  57.     vex::task::sleep(500);
  58.     Screen.println("Driver");
  59.     vex::task::sleep(500);
  60.  
  61.     Screen.print("Ian Smith - ");
  62.     vex::task::sleep(500);
  63.     Screen.println("Coder");
  64.     vex::task::sleep(500);
  65.  
  66.     Screen.print("Caleb Bachmiere - ");
  67.     vex::task::sleep(500);
  68.     Screen.println("Notebook");
  69.     vex::task::sleep(500);
  70.  
  71.     // Display empty line
  72.     Screen.println(" ");
  73.     vex::task::sleep(1000);
  74.  
  75.     // Coach credits
  76.     Screen.print("Caleb Bachmeier - ");
  77.     vex::task::sleep(500);
  78.     Screen.println("Team Leader");
  79.     vex::task::sleep(500);
  80.  
  81.     Screen.print("Paul Yanzick - ");
  82.     vex::task::sleep(500);
  83.     Screen.println("Coach");
  84.     vex::task::sleep(500);
  85.  
  86.     Screen.print("Chris Stewart - ");
  87.     vex::task::sleep(500);
  88.     Screen.println("Coach");
  89.     vex::task::sleep(500);
  90.  
  91.     // Wait at the end before exiting and going to the next page
  92.     vex::task::sleep(5000);
  93.     Screen.clearScreen();
  94.     vex::task::sleep(250);
  95.     Screen.render();
  96.     while(3){
  97.         Screen.print("*Programmed by Ian Smith");
  98.         Screen.render();
  99.         vex::task::sleep(500);
  100.         Screen.clearScreen();
  101.         Screen.render();
  102.         vex::task::sleep(500);
  103.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement