ProtoTracer  1.0
Real-time 3D rendering and animation engine
Loading...
Searching...
No Matches
main.cpp File Reference

Entry point for various projects, managing initialization and main loop operations. More...

Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

void setup ()
 Arduino setup function, initializes the selected project.
 
void loop ()
 Arduino main loop function, animates, renders, and updates the selected project.
 

Detailed Description

Entry point for various projects, managing initialization and main loop operations.

This file determines which project to run based on the defined preprocessor directive and provides functionality for initializing and executing the selected project.

Supported projects:

  • PROJECT_PROTOGEN_HUB75
  • PROJECT_PROTOGEN_WS35
  • PROJECT_PROTOGEN_BETA
  • PROJECT_VERIFY_ENGINE
  • PROJECT_VERIFY_HARDWARE

22/12/2024 22/12/2024

Version
1.0 Coela Can't! Coela Can't

Definition in file main.cpp.

Function Documentation

◆ loop()

void loop ( )

Arduino main loop function, animates, renders, and updates the selected project.

If PROJECT_VERIFY_HARDWARE is defined, this function is disabled.

< Calculates animation ratio based on time.

< Animates the project based on the current ratio.

< Renders the project's scene.

< Displays the rendered frame.

< Outputs debugging and performance statistics.

Definition at line 71 of file main.cpp.

◆ setup()

void setup ( )

Arduino setup function, initializes the selected project.

If PROJECT_VERIFY_HARDWARE is defined, runs continuous hardware testing.

< Initializes the serial port for debugging.

< Initializes the selected project.

< Ensures stability after initialization.

Definition at line 49 of file main.cpp.

References HardwareTest::ScanDevices(), HardwareTest::TestBoopSensor(), HardwareTest::TestHUD(), and HardwareTest::TestNeoTrellis().