Read a sensor
Collect a distance, light value or another measurement. A program can use that information instead of running blindly.
Programming a robot means reading measurements, making decisions and controlling actions. Prism C is designed to express this logic clearly, while respecting the hardware used.

The same questions come up in many robotics projects, from a simple mobile robot to a mechanism controlled by sensors.
Collect a distance, light value or another measurement. A program can use that information instead of running blindly.
Conditions determine what happens next. Loops repeat actions. Variables keep track of values and program state.
Move a motor, stop a mechanism or react differently depending on what the sensor reports.
Text lets you see the logic, revisit it and organize it as the project grows. We want beginners to understand every step and experienced users to structure more complex behaviors without hiding the hardware.
A readable program helps connect an instruction to a movement or a sensor response. Understanding comes before shortcuts.
Motor ports, sensor types and controller capabilities vary. A shared programming approach still needs to account for those differences.
A robot approaches a wall. It measures the distance, checks a condition and stops its motors when the distance becomes too small. This is a conceptual example of control flow, not executable Prism C code.
Verified code examples and their hardware requirements will be published when the corresponding implementation can be demonstrated.