I use the v5 brain’s screen to move all the motors forwards and backwards. So far, one side is working now. This is my code. I have some Brain.Screen ui like shapes and font at the front but I can’t take a screenshot or copy it now.
while(true){
if(245 >= Brain.Screen.xPosition() & Brain.Screen.pressing()){
Motor1.spin(forward);
Motorx.spin(forward);...
} else if(245 < Brain.Screen.xPosition() & Brain.Screen pressing()){
Motor1.spin(reverse);
Motorx.spin(reverse);...
} else{
Motor1.stop();
Motorx.stop();...
}