Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Boot screen
- // Initializing the VEX Controller LCD
- vex::lcd ControllerScreen = vex::lcd();
- // Set the font and size for "7686X" text
- ControllerScreen.setFont(vex::fontType::mono40);
- ControllerScreen.setFontSize(40);
- ControllerScreen.setPenColor(vex::color::black);
- // Calculate the center coordinates for "7686X" text
- int centerX = ControllerScreen.width() / 2;
- int centerY = ControllerScreen.height() / 2 - 30; // Adjust for the line below
- // Display "7686X" text centered on the screen
- ControllerScreen.printAt(centerX, centerY, "7686X");
- // Set the font and size for "Phoenix Rising" text
- ControllerScreen.setFont(vex::fontType::mono20);
- ControllerScreen.setFontSize(20);
- // Calculate the center coordinates for "Phoenix Rising" text
- int lineCenterY = centerY + 60; // Adjust for the line above
- // Display "Phoenix Rising" text centered below "7686X"
- ControllerScreen.printAt(centerX, lineCenterY, "Phoenix Rising");
- //Sleep before wiping the screen
- this_thread::sleep_for(1500);
- Brain.Screen.clearScreen();
- //Next screen
- Screen.render();
- // Set text alignment to left with horizontal centering
- Screen.setOrigin(0, 50);
- // Team member credits
- Screen.setFont(vex::fontType::mono20);
- // Display team member names and titles
- Screen.print("Jayden Yanzick - ");
- vex::task::sleep(500);
- Screen.println("Builder");
- vex::task::sleep(500);
- Screen.print("Chase ***** - ");
- vex::task::sleep(500);
- Screen.println("Builder");
- vex::task::sleep(500);
- Screen.print("Connor Albers - ");
- vex::task::sleep(500);
- Screen.println("Builder");
- vex::task::sleep(500);
- Screen.print("Miles Berger - ");
- vex::task::sleep(500);
- Screen.println("Driver");
- vex::task::sleep(500);
- Screen.print("Ian Smith - ");
- vex::task::sleep(500);
- Screen.println("Coder");
- vex::task::sleep(500);
- Screen.print("Caleb Bachmiere - ");
- vex::task::sleep(500);
- Screen.println("Notebook");
- vex::task::sleep(500);
- // Display empty line
- Screen.println(" ");
- vex::task::sleep(1000);
- // Coach credits
- Screen.print("Caleb Bachmeier - ");
- vex::task::sleep(500);
- Screen.println("Team Leader");
- vex::task::sleep(500);
- Screen.print("Paul Yanzick - ");
- vex::task::sleep(500);
- Screen.println("Coach");
- vex::task::sleep(500);
- Screen.print("Chris Stewart - ");
- vex::task::sleep(500);
- Screen.println("Coach");
- vex::task::sleep(500);
- // Wait at the end before exiting and going to the next page
- vex::task::sleep(5000);
- Screen.clearScreen();
- vex::task::sleep(250);
- Screen.render();
- while(3){
- Screen.print("*Programmed by Ian Smith");
- Screen.render();
- vex::task::sleep(500);
- Screen.clearScreen();
- Screen.render();
- vex::task::sleep(500);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement