Page 1 of 1

where does "LCP.messageWrite" write to ?

Posted: 06 Dec 2012, 18:30
by ramon-bacardi
Hi - I am brand new to leJOS and NXT brick.
I am running pretty simple programs on NXT using leJOS, and have a small problem with this code :

===
LCPBTResponder lcpThread = new LCPBTResponder();
lcpThread.setDaemon(true);
lcpThread.start();

LCP.messageWrite(0, "Waiting for ENTER to be pressed");
System.out.println ( "Use ENTER to proceed" ) ;

// Wait for user to press ENTER
Button.ENTER.waitForPressAndRelease();
===

The problem is that "SYSTEM.OUT.PRINTLN" works OK, writing to LCD display,
... but LCP.messageWrite does nothing ...

I compile, link at PC, then send the program to NXT, without executing it yet.

Then I start "nxjmonitor.bat" on windows - it runs OK : the "battery" gauge moves OK all the time.

Then I start the program on NXT, but nothing comes to "trace messages" field in NXJ Monitor window.

Any ideas ?

Thanks. Ramon.

Re: where does "LCP.messageWrite" write to ?

Posted: 18 Dec 2012, 22:11
by bullestock