lejos.util
Class DebugMessages

java.lang.Object
  extended by lejos.util.DebugMessages

public class DebugMessages
extends Object

This class has been developed to use it in case of you have to tests leJOS programs and you need to show in NXT Display data but you don't need to design a User Interface. This class is very useful to debug algorithms in your NXT brick.

Author:
Juan Antonio Brenha Moral

Constructor Summary
DebugMessages()
           
DebugMessages(int init)
          Constructor which the user establish in what line start showing messages
 
Method Summary
 void clear()
          Clear LCD
 void echo(int message)
          Show in NXT Screen a message
 void echo(String message)
          Show in NXT Screen a message
 void setDelay(int dMs)
          Set the delay measured in MS.
 void setDelayEnabled(boolean de)
          Enable/Disabled if you need to show output with delay
 void setLCDLines(int lines)
          Set the number of lines to show in the screen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugMessages

public DebugMessages()

DebugMessages

public DebugMessages(int init)
Constructor which the user establish in what line start showing messages

Parameters:
init -
Method Detail

setLCDLines

public void setLCDLines(int lines)
Set the number of lines to show in the screen.

Parameters:
lines -

setDelayEnabled

public void setDelayEnabled(boolean de)
Enable/Disabled if you need to show output with delay

Parameters:
de -

setDelay

public void setDelay(int dMs)
Set the delay measured in MS.

Parameters:
dMs -

echo

public void echo(String message)
Show in NXT Screen a message

Parameters:
message -

echo

public void echo(int message)
Show in NXT Screen a message

Parameters:
message -

clear

public void clear()
Clear LCD