How do you get the brain to print out the light sensors’ analog values? Currently, the syntax is incorrect and no API has the correct one. If you have any questions about my problem please ask.
void temp(void){
Brain.Screen.setCursor(xvalueofcursor, yvalue of cursor);
Brain.Screen.setFont(whatever font size you want);
Brain.Screen.print(LightA.value(analogUnits));
sleep(5);
}
That would just be where you want the cursor to start on the screen.
for your second question, basically its asking for what unit you want. In this case use;
Brain.Screen.print(LightA.value(percent));
If that doesn’t work, use pct instead of percent.
You can also find info on how to use functions in the VEXcode API: