|
import josx.platform.rcx.*; public class Hello { public static void main (String[] args) throws Exception { Motor.A.forward(); Motor.C.forward(); Thread.sleep(2000); Motor.A.stop(); Motor.C.stop(); } } |
| Note: I have found it helpful to use the analogy of a wheel chair to explain the concept of turning. So if I was in a wheel chair and the wheel on my left was motor C and on my right was motor A, how do I turn the chair? |
|
Common Problems:
If you are using Notepad it automatically saves the file as a text file unless the "Save as Type" is set to "All Files". If lejos can't find your file try saving it again and make sure "Save as type" is set to "All Files" If compiling and downloading in DOS and it can't find the file make sure that you are in the same directory as the file. |