Create an instance of a light sensor, it’s probably not in the robot config as it’s not an often used sensor, it should be in the drawer when using C++ Pro
light Light( Brain.ThreeWirePort.A );
int main() {
while(1) {
int value = Light.value( analogUnits::range12bit );
Brain.Screen.printAt( 10, 50, "Light Sensor %d", value);
// Allow other tasks to run
this_thread::sleep_for(10);
}
}