| | lejos program terminating immediately Jason Quint
| | | Hi, I'm trying to use leJOS to display the current value of the rotation sensor I have hooked up to Sensor Port 1, but when I run the program, the RCX just beeps and ends the program immediately. Here's my code: import josx.platform.rcx.*; public (...) (19 years ago, 10-Aug-05, to lugnet.robotics.rcx.java)
| | | | | | | | AW: lejos program terminating immediately Jochen Hiller
| | | | | Hi Jason, you have to loop within your main program, otherwise main() will be left. E.g. use while (true) { Thread.sleep (1000); } or, use a button listener, and exit when some button has been pressed. HTH, Jochen (...) (19 years ago, 11-Aug-05, to lugnet.robotics.rcx.java)
| | | | | | |